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, docs@python, r.david.murray
Date 2011-10-03.14:45:27
SpamBayes Score 0.0005529599
Marked as misclassified No
Message-id <1317653128.63.0.875115518309.issue13094@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry.  It is intended behavior.  The lambda 'each' is bound to the local 'each', and by the time the lambda's execute, the value of 'each' is 'baz'.

I'm going to turn this into a doc bug, because while I'm pretty sure this is documented *somewhere*, I don't see it in the programming FAQ, and it should be there.
History
Date User Action Args
2011-10-03 14:45:28r.david.murraysetrecipients: + r.david.murray, docs@python, Tomáš.Dvořák
2011-10-03 14:45:28r.david.murraysetmessageid: <1317653128.63.0.875115518309.issue13094@psf.upfronthosting.co.za>
2011-10-03 14:45:27r.david.murraylinkissue13094 messages
2011-10-03 14:45:27r.david.murraycreate