Is it possible to print the function calls to a module? Like:
test.py
import mymod
print mymod.x()
mymod.py
# each time a function is called we print out the called function and module
print 'Func call: %s from %s' % (???, ???)
def x():
return 'hello'
Where would I pick up the ???
On Jun 27, 2:42 pm, Matthew Peter [EMAIL PROTECTED] wrote:
Is it possible to print the function calls to a module? Like:
test.py
import mymod
print mymod.x()
mymod.py
# each time a function is called we print out the called function and module
print 'Func call: %s from %s' % (???, ???)