[issue45930] Lambda function bug
Karthikeyan Singaravelan
report at bugs.python.org
Mon Nov 29 12:01:26 EST 2021
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
This is known behaviour due to binding. Please see https://docs.python.org/3/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result
----------
nosy: +xtreak
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45930>
_______________________________________
More information about the Python-bugs-list
mailing list