log caller

2007-06-27 Thread Matthew Peter
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 ???

Re: log caller

2007-06-27 Thread attn . steven . kuo
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' % (???, ???)