"Russell Blau" <ru******@hotmail.com> wrote in message
news:2r*************@uni-berlin.de...
<be*******@aol.com> wrote in message
news:30**************************@posting.google.c om... Is there a way in Python to print the name of the function one is
currently in?
Google is your friend:
http://groups.google.com/groups?thre...eton.ca&rnum=1
Hi.
The posting that the above link refers to was made by me, but I'd like to
suggest that you do not use the code presented there (def WhoMightIBe()).
That was just a bit of a failed experiment to see whether I could track down
the name of a function _after_it_had_been_aliased_. What the OP wants is the
recipe (by Alex Martelli [1]) quoted in the posting I made previous to this
one. I regret posting that experiment now - It was fun to try, but I think
it casts more shadow than light.
Good luck,
Sean
[1]
http://aspn.activestate.com/ASPN/Coo...n/Recipe/66062