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 ??? variables? A brief example would be nice too :) 
Thanks
in advance!


 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to