Misunderstanding about closures

Michele Simionato michele.simionato at poste.it
Tue Jun 8 07:41:38 CEST 2004

Alexander Schmolck <a.schmolck at gmx.net> wrote in message news:<yfsy8mzk4os.fsf at black132.ex.ac.uk>...
> Not quite. In fact in the language that more or less started it all, scheme,
> the standard iteration construct 'do' does indeed introduce a *new binding* on
> each iteration.
> Common Lisp OTOH doesn't -- like python:

A thoughtful discussion of Python/Scheme/Lisp closures and for loops
was made by
Jacek Generowicz in this thread:


More information about the Python-list mailing list