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> 



_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to