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 <>< [EMAIL PROTECTED] " " """ -- http://mail.python.org/mailman/listinfo/python-list