<[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 work
[EMAIL PROTECTED] wrote:
> Does Python provide some sort of mechanism for answering the question:
> what method am I in?
>
> Example: assume the file example1.py contains the following code:
>
> def driver():
>print 'hello world'
>print __name__
>print 'the name of this method is %s' %