function call

ianaré ianare at gmail.com
Tue Sep 4 22:17:39 CEST 2007


Hey all,

Is there a way of printing out how a function was called? In other
words if I do the following:

def someFunction(self):
    self.someOtherFunction(var1, var2)


I would get something like "someOtherFunction: called by:
someFunction, args are: var1, var2"

Thanks in advance

- ianaré




More information about the Python-list mailing list