name of the current function ?
Mark McEahern
marklists at mceahern.com
Sat Apr 27 09:36:19 EDT 2002
[Solveig Wiesmayr]
> I would like to get the name 'my_name' of the current function to pass it
> to some other (debugging-) function.
You'll be delighted to know that this simple google query:
http://www.google.com/search?hl=en&q=current+function+name+python
returns this simple recipe, which seems to answer your question:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062
Cheers,
// mark
More information about the Python-list
mailing list