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
See module inspect
--
http://mail.python.org/mailman/listinfo/python-list
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