access the name of my method inside it

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Aug 1 05:18:03 EDT 2007


On Wed, 01 Aug 2007 09:06:42 +0000, james_027 wrote:

> for example I have this method
> 
> def my_method():
>     # do something
> 
>     # how do I get the name of this method which is my_method here?

Why do you need this?  There are ways but those are not really good for
production code.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list