[Python-Dev] closure semantics

Guido van Rossum guido at python.org
Fri Oct 24 12:05:09 EDT 2003


> well, no, it's probably that I expect rebindable closed-over vars to
> be introduced but some kind of structured construct instead of the
> usual Python freeform.

Why does rebindability make a difference here?  Local vars are already
visible in inner scopes, and if they are mutable, they are already
being modified from inner scopes (just not rebound, but to most
programmers that's an annoying detail).

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list