python dynamic scoping question

Peter Hansen peter at
Mon Apr 21 13:48:56 CEST 2003

Greg Krohn wrote:
> "Jp Calderone" <exarkun at> wrote:
> > On Sun, Apr 20, 2003 at 07:49:55PM -0500, Greg Krohn wrote:
> > > globals() - Return a dictionary representing the current global symbol
> > > Cool?
> >
> >   No.  The right way to do this is:
> >   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 ...


More information about the Python-list mailing list