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 Tijs Van Oevelen, r.david.murray
Date 2015-12-11.19:33:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449862429.09.0.830912644364.issue25843@psf.upfronthosting.co.za>
In-reply-to
Content
For reference, the minimal reproducer is:

>>> f1, f2 = lambda: 1, lambda: 1.0
>>> f2()
1

The cause (according to the answer in the link) is that the two lambda's incorrectly compare as equal and end up sharing the same code object...one of the inequality checks is line number, so this only happens when the lambdas are on the same line.

Aside: it would be helpful if people would post bug summaries instead of just linking to an outside article.  The link is of course very valuable information, but it saves us time if the poster summarizes the bug so the right people know to look at it.
History
Date User Action Args
2015-12-11 19:33:49r.david.murraysetrecipients: + r.david.murray, Tijs Van Oevelen
2015-12-11 19:33:49r.david.murraysetmessageid: <1449862429.09.0.830912644364.issue25843@psf.upfronthosting.co.za>
2015-12-11 19:33:49r.david.murraylinkissue25843 messages
2015-12-11 19:33:48r.david.murraycreate