Name of the function

Olaf Meding OlafMeding at compuserve.com
Thu Jan 8 14:03:10 EST 2004


Is there a way to do this w/o importing another module?

Yes this is what I was looking for except the code below requires
importing module inspect.

> def foo():
>      print inspect.currentframe().f_code.co_name

Thanks much for your reply.


Olaf



More information about the Python-list mailing list