python dynamic scoping question

Peter Hansen peter at engcorp.com
Mon Apr 21 07:48:56 EDT 2003


Greg Krohn wrote:
> "Jp Calderone" <exarkun at intarweb.us> wrote:
> > On Sun, Apr 20, 2003 at 07:49:55PM -0500, Greg Krohn wrote:
> > > globals() - Return a dictionary representing the current global symbol
[snip]
> > > Cool?
> >
> >   No.  The right way to do this is:
[snip]
> 
> >   But [it] isn't the answer to the original poster's question, afaict.
> 
> Really? The only differnece I see is 'global x'.

If I understand you correctly, you misunderstood Jp.  He's saying
that *neither* reply, neither yours nor the corrected version, answers 
the original poster's question, for which AFAICT we still don't fully 
understand the rationale ...

-Peter




More information about the Python-list mailing list