[Python-Dev] Explicit Lexical Scoping (pre-PEP?) (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 11 01:32:22 CEST 2006


Guido van Rossum wrote:

Then let's allow

nonlocal x = 12 as a shortcut for nonlocal x x = 12

I thought you didn't like that, because in

nonlocal x = 12 x = 42

it's not clear whether these are talking about the same x or not.

-- Greg



More information about the Python-Dev mailing list