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

single process instance

2005-11-23 Thread Joe Wong (Mango)
Dear all,    Is there any library / function that I can put in my process to make sure he is the one and only one instance running in the box?   Best regards,   - Joe   -- http://mail.python.org/mailman/listinfo/python-list