<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Does Python provide some sort of mechanism for answering the question:
> what method am I in?

I believe that Python, the language defined in the Ref Manual, does not. 
The CPython implementation adds enough introspection into its workings that 
you can get at the function code definition name, with the simplest method 
being the one given by Fredrik.  If you want the names currently bound to 
the function object in a particular namespace, you have to do something 
else.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to