Misunderstanding about closures

Michele Simionato michele.simionato at poste.it
Tue Jun 8 01:41:38 EDT 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.
<snip>
> Common Lisp OTOH doesn't -- like python:
>
<snip>

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

http://groups.google.it/groups?hl=it&lr=&ie=UTF-8&oe=UTF-8&threadm=tyfsmgtbewl.fsf%40lxplus030.cern.ch&rnum=1&prev=/groups%3Fhl%3Dit%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dsimionato%2Blambda%26btnG%3DCerca%26meta%3Dgroup%253Dcomp.lang.python.*



More information about the Python-list mailing list