[Python-Dev] Explicit Lexical Scoping (pre-PEP?) (original) (raw)
Giovanni Bajo rasky at develer.com
Tue Jul 4 14:43:40 CEST 2006
- Previous message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Next message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Talin wrote:
This is sort of a re-do of an earlier proposal which seems to have gotten lost in the shuffle of the larger debate.
I propose to create a new type of scoping rule, which I will call "explicit" lexical scoping, that will co-exist with the current "implicit" scoping rule that exists in Python today.
Interesting. What if for-loops implicitally used "my" on the iteration variable? That would solve the binding problem we were discussing and make lambdas "Do The Right Thing"(TM) when used in loops.
Giovanni Bajo
- Previous message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Next message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]