471,330 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Return name of caller function?

For example, how do I get this to work?

def func():
print "This is", __?__
return __caller__

def echo():
print "This is ", __?__
return func()

>>print echo()
This is echo
This is func
echo


__________________________________________________ __________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/on...h?refer=1ONXIC
Jun 26 '07 #1
0 982

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

66 posts views Thread by Darren Dale | last post: by
8 posts views Thread by george young | last post: by
8 posts views Thread by Ravindranath Gummadidala | last post: by
4 posts views Thread by Kelvin | last post: by
23 posts views Thread by Nascimento | last post: by
17 posts views Thread by Sara | last post: by
17 posts views Thread by Pietro Cerutti | last post: by
4 posts views Thread by barcaroller | 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.