[Python-Dev] Using and binding relative names (was Re: PEP for Better Control of Nested Lexical Scopes)

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Feb 26 07:48:03 CET 2006


Almann T. Goo wrote:

> One of the biggest points of contention to this is of course the
> backwards incompatibility with a new keyword ...

Alternatively, 'global' could be redefined to mean
what we're thinking of for 'outer'. Then there would
be no change in keywordage.

There would be potential for breaking code, but I
suspect the actual amount of breakage would be
small, since there would have to be 3 scopes
involved, with something in the middle one
shadowing a global that was referenced in the
inner one with a global statement.

Given the rarity of global statement usage to begin
with, I'd say that narrows things down to something
well within the range of acceptable breakage in 3.0.

Greg


More information about the Python-Dev mailing list