I am programmatically printing out a list of function in python. I can get the name from name
for ifunc,func in enumerate(list_of_functions):
print(str(ifunc)+func.__name__)
How to get the source filename where the function is defined as well?
and in case the function it is attribute of a object, how to get the type of parent object?
portability python2/3 is a must