[Python-Dev] 2.5 and beyond

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jul 1 08:14:28 CEST 2006


Andrew Koenig wrote:

> Incidentally, I think that lexical scoping would also deal with the problem
> that people often encounter in which they have to write things like "lambda
> x=x:" where one would think "lambda x:" would suffice.

This is another red herring. Python's problem here
is not because its scoping isn't lexical (it is).
It's because Scheme implicitly introduces new scopes
in various places where the equivalent Python
constructs don't.

--
Greg


More information about the Python-Dev mailing list