Name of current method

Gerhard Häring gerhard.haering at opus-gmbh.net
Thu Nov 28 14:33:35 EST 2002


Thomas Guettler <pan-newsreader at thomas-guettler.de> wrote:
> Hi!

Servus!

> How can I get the name of the method which is executed?

Why do you want to do this? Looks like something rather questionable to me.

Anyway, you can raise an exception, catch it and analyse it using the
methods in the 'traceback' module. I think your question has been discussed
several times in the past here, so you should be able to find less vague
answers via groups.google.com ;-)
-- 
Gerhard Häring
OPUS GmbH München
Tel.: +49 89 - 889 49 7 - 32
http://www.opus-gmbh.net/



More information about the Python-list mailing list