[Python-Dev] nonlocal x = value

Nick Coghlan ncoghlan at gmail.com
Mon Dec 27 13:25:03 CET 2010

On Mon, Dec 27, 2010 at 8:31 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
> On Mon, Dec 27, 2010 at 9:43 AM, Raymond Hettinger
> <raymond.hettinger at gmail.com> wrote:
>> FWIW, I'm entirely opposed to doing an assignment in a nonlocal definition.
>> [...]
> -1 for assignment in nonlocal and global statements from me, too.

Indeed. The PEP should be updated to be clear that that part was never
implemented (referencing Raymond's post for the reasons why).


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list