[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
- Previous message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Next message: [Python-Dev] 2.5 and beyond
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Next message: [Python-Dev] 2.5 and beyond
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]