[Python-3000] Sky pie: a "var" keyword
Fredrik Lundh
fredrik at pythonware.com
Tue Oct 10 15:47:55 CEST 2006
Ka-Ping Yee wrote:
> The only sane proposal i've seen that consistently addresses all
> these cases, doesn't create new ambiguous situations, and doesn't
> break most existing Python code is the "nonlocal" declaration.
>
> nonlocal x
>
> means
>
> "Don't make a new binding for x in the local scope."
wasn't there a PEP on this once upon a time ?
wait a minute...
alright, the first google hit for "nonlocal pep" is a mail from Guido where he's
"+1/can anyone write a PEP" in response to a mail from you:
http://mail.python.org/pipermail/python-dev/2006-July/067067.html
(and for the curious, the followups to Guido's post includes links to earlier
discussions).
</F>
More information about the Python-3000
mailing list