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 xiang.zhang
Recipients clevy, martin.panter, rhettinger, serhiy.storchaka, stutzbach, xiang.zhang
Date 2016-04-29.10:45:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461926720.02.0.690441890918.issue24434@psf.upfronthosting.co.za>
In-reply-to
Content
Caleb's resolution looks good, just like the C version does, at least seems correct.

Serhiy, the corner case is interesting. math.nan == math.nan should return false so I think (1, math.nan) in ItemsView({1: math.nan} is a right behaviour. But the C version, which calls PyObject_RichCompareBool and then do a pointer check first seems having some problem.
History
Date User Action Args
2016-04-29 10:45:20xiang.zhangsetrecipients: + xiang.zhang, rhettinger, stutzbach, martin.panter, serhiy.storchaka, clevy
2016-04-29 10:45:20xiang.zhangsetmessageid: <1461926720.02.0.690441890918.issue24434@psf.upfronthosting.co.za>
2016-04-29 10:45:20xiang.zhanglinkissue24434 messages
2016-04-29 10:45:19xiang.zhangcreate