I have large number of python files where classes are also inheriting and overriding methods. I am tracking calls of the functions. Is there a way I can get the details of the function (where it is located in which file) without the actual call of the function (for example, just by passing object and function name)?
Not to forget that objects are dynamic. So just listing all function names of the project isn't useful.
File 1:
class ABC(DEF):
def Start(self):
pass
File 2:
class XYZ(DEF):
def Start(self):
pass
.
.
.
File n:
class PQR(AQZ):
def Activity(self):
obj = ABC()
# How to know in which file, the function Start is defined
obj.Start()