'Determines if the function\'s signature is compatible with a
cdef function.  This can be used before calling
.as_cfunction() to see if that will be successful.'

def is_cdef_func_compatible(self):

    if self.needs_closure:
        return False
    if (self.star_arg or self.starstar_arg):
        return False
    return True
