[Python-Dev] nonlocal x = value

Benjamin Peterson benjamin at python.org
Fri Dec 17 18:33:50 CET 2010


2010/12/17 Alexander Belopolsky <alexander.belopolsky at gmail.com>:
> On Fri, Dec 17, 2010 at 11:52 AM, Laurens Van Houtven <lvh at laurensvh.be> wrote:
>> +1 for throwing it out of the PEP. Assignment is a thing,
>> nonlocal/global is a thing, don't mix them up :) (That in addition to
>> the grammar cleanliness argument Stephan already made)
>
> Another +1 for the same reasons.  Also, since global does not allow
> assignment, neither should nonlocal.

Note that the PEP stated that global would also be extended.



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list