Message256230
| 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:49 | r.david.murray | set | recipients:
+ r.david.murray, Tijs Van Oevelen |
| 2015年12月11日 19:33:49 | r.david.murray | set | messageid: <1449862429.09.0.830912644364.issue25843@psf.upfronthosting.co.za> |
| 2015年12月11日 19:33:49 | r.david.murray | link | issue25843 messages |
| 2015年12月11日 19:33:48 | r.david.murray | create |
|