get current function name
Micah Elliott
mde at micah.elliott.name
Fri Dec 2 02:08:25 EST 2005
On Dec 02, Joe Wong (Mango) wrote:
> Is this possible for a function to obtain its own name ?
>
> eg.
> def func1():
> print "my name is " + get_my_name()
>
> the result will show "my name is func1"
This very question was discussed recently:
http://groups.google.com/group/comp.lang.python/msg/cdc1f03ceabf2c79
--
_ _ ___
|V|icah |- lliott <>< mde at micah.elliott.name
" " """
More information about the Python-list
mailing list