[Python-Dev] nonlocal x = value (original) (raw)
Georg Brandl g.brandl at gmx.net
Sat Dec 18 13:12:33 CET 2010
- Previous message: [Python-Dev] nonlocal x = value
- Next message: [Python-Dev] nonlocal x = value
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 17.12.2010 17:52, schrieb Laurens Van Houtven:
+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)
The trouble is what to make of
nonlocal x = 3, y
Is it two nonlocal declarations or one with a tuple assignment?
Georg
- Previous message: [Python-Dev] nonlocal x = value
- Next message: [Python-Dev] nonlocal x = value
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]