[Python-Dev] Explicit Lexical Scoping (pre-PEP?)

Ka-Ping Yee python-dev at zesty.ca
Sun Jul 9 20:50:00 CEST 2006


On Sun, 9 Jul 2006, Andrew Koenig wrote:
> > Sounds reasonable to me.  If we're talking py3k I'd chuck "global" as a
> > keyword though and replace it with something like "outer".
>
> I must say that I don't like "outer" any more than I like "global."  The
> problem is that in both cases we are selecting the *inner*most definition
> that isn't in the current scope.

That's why "nonlocal" is a better choice in my opinion.


-- ?!ng


More information about the Python-Dev mailing list