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 Samuel.Ainsworth
Recipients Samuel.Ainsworth
Date 2016-02-14.23:09:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455491353.47.0.497218626994.issue26361@psf.upfronthosting.co.za>
In-reply-to
Content
If we construct a dict as follows,

x = {t: lambda x: x * t for t in range(5)}

then `x[0](1)` evaluates to 4! Tested on 2.7 and 3.5.
History
Date User Action Args
2016-02-14 23:09:13Samuel.Ainsworthsetrecipients: + Samuel.Ainsworth
2016-02-14 23:09:13Samuel.Ainsworthsetmessageid: <1455491353.47.0.497218626994.issue26361@psf.upfronthosting.co.za>
2016-02-14 23:09:13Samuel.Ainsworthlinkissue26361 messages
2016-02-14 23:09:13Samuel.Ainsworthcreate