Re: get current function name

2005-12-01 Thread Micah Elliott
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/com

get current function name

2005-12-01 Thread Ezequiel, Justin
See module inspect -- http://mail.python.org/mailman/listinfo/python-list

get current function name

2005-12-01 Thread Joe Wong (Mango)
Hello,    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"   Regards,   - Joe   -- http://mail.python.org/mailman/listinfo/python-list