Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

access the name of my method inside it


  • From: bj_666 at gmx.net (Marc 'BlackJack' Rintsch)
  • Subject: access the name of my method inside it
  • Date: 1 Aug 2007 09:18:03 GMT

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