Re: newbie question - identifying name of method

2005-02-14 Thread Terry Reedy
<[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

Re: newbie question - identifying name of method

2005-02-14 Thread Fredrik Lundh
[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' %