[Python-3000] Draft PEP for outer scopes

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 2 00:14:43 CET 2006


Guido van Rossum wrote:

> My personal preference is still to abuse 'global' instead of adding a
> new, ugly keyword. That would make the syntax for global and nonlocal
> completely identical. :-) But I seem to be alone in this preference.

You're not alone -- I'd be happy with that, too.
I don't even think it's particularly abusive,
since I regard "nonlocal" as a legitimate meaning
of "global" in a language that can have more than
two nested scopes.

--
Greg


More information about the Python-3000 mailing list