[issue29101] Nested lambdas in setattr() lose context in Python 2.7

Benjamin Peterson report at bugs.python.org
Wed Dec 28 23:25:25 EST 2016


Benjamin Peterson added the comment:

https://docs.python.org/2/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result

----------
nosy: +benjamin.peterson
resolution:  -> not a bug
status: open -> closed

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


More information about the Python-bugs-list mailing list