471,328 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

log caller

Is it possible to print the function calls to a module? Like:

import mymod
print mymod.x()
# 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.
Jun 27 '07 #1
0 782

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by ivan_oj28 | last post: by
9 posts views Thread by jaden10001 | last post: by
4 posts views Thread by Thomas Mlynarczyk | last post: by
14 posts views Thread by Genival | last post: by
9 posts views Thread by Csaba Gabor | last post: by
5 posts views Thread by pamelafluente | last post: by
7 posts views Thread by Rahul | last post: by
7 posts views Thread by =?UTF-8?B?QW50w7NuaW8gTWFycXVlcw==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.