Am I correct assuming that all functions (built-in or user-defined) belong to the same class, but that class doesn't seem to be bound to any variable by default?
How can I check that an object is a function?
I can do this I guess:
def is_function(x):
def tmp()
pass
return type(x) is type(tmp)
It doesn't seem neat, and I'm not even 100% sure it's perfectly correct.