This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Tomáš.Dvořák, chris.jerdonek, docs@python, eric.araujo, ezio.melotti, r.david.murray
Date 2013-01-03.12:30:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357216239.54.0.00481985352528.issue13094@psf.upfronthosting.co.za>
In-reply-to
Content
The FAQ (as in, this question gets asked again and again) is something like "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?"

The same applies to regular functions, but people almost never do that in a loop, so in that case they are more likely to think of the scoping issue.
History
Date User Action Args
2013-01-03 12:30:39r.david.murraysetrecipients: + r.david.murray, ezio.melotti, eric.araujo, chris.jerdonek, docs@python, Tomáš.Dvořák
2013-01-03 12:30:39r.david.murraysetmessageid: <1357216239.54.0.00481985352528.issue13094@psf.upfronthosting.co.za>
2013-01-03 12:30:39r.david.murraylinkissue13094 messages
2013-01-03 12:30:39r.david.murraycreate