[issue8283] series of lamdas in loop sets the paramater on all calls to that of the last call

Benjamin Peterson report at bugs.python.org
Thu Apr 1 20:28:50 CEST 2010


Benjamin Peterson <benjamin at python.org> added the comment:

This is a defined behavior of closures.

----------
nosy: +benjamin.peterson
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list