[Python-Dev] Lexical scoping in Python 3k

Simon Percivall s.percivall at chello.se
Sat Jul 1 20:27:47 CEST 2006


What about doing something similar to how import was changed?

.a = 5 # this scope (self might be too magical
..a = 3 # up one scope
...a # up three

Of course, this looks ... perhaps a bit strange. Also, counting is a  
bother.

//Simon


More information about the Python-Dev mailing list