[docs] [issue13094] Need Programming FAQ entry for the behavior of closures

Ezio Melotti report at bugs.python.org
Thu Jan 3 17:28:01 CET 2013


Ezio Melotti added the comment:

> "why do the lambdas I define in a loop all return the same result when
> the input value was different when each one was defined?"

I thought about that, but that sounds a bit too long/specific.  It also has the problem that the issue is not strictly related to lambdas or loops (even if this combination might be more common), and doesn't say where the "result" come from.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13094>
_______________________________________


More information about the docs mailing list