I can call a function in python. And it is not a built-in.
Is there a way to check in which module or class this method is defined?
I can call a function in python. And it is not a built-in.
Is there a way to check in which module or class this method is defined?
Just found it. Seems the inspect module can do the trick.
>>> import inspect
>>> inspect.getmodule(xxx)