Update to PEP 227 (static scoping)
Konrad Hinsen
hinsen at cnrs-orleans.fr
Fri Feb 23 05:05:07 EST 2001
Jeremy Hylton <jeremy at alum.mit.edu> writes:
> It would have to be -N, because Python is already lexically scoped.
> The question of the moment is whether the scopes should nest.
There is one thing that I have missed in PEP 227: a motivation for the
proposed change. All I can find is the statement that other languages
have nested scopes. That sounds like a valid reason when designing a
new language, but is it sufficient to modify an existing language in a
way that risks breaking working code? I can't remember seeing
excessive complaints about Python's current scoping rules.
Konrad.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the Python-list
mailing list