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 tamuhey
Recipients tamuhey
Date 2020-06-20.09:20:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592644857.04.0.72570245151.issue41049@roundup.psfhosted.org>
In-reply-to
Content
Applying PyObject_RichCompareBool to two `nan`s can be true if the two nans are same object, i.e.

```
a = float("nan")
PyObject_RichCompareBool(a, a, Py_EQ) // True
```

I read the document (https://docs.python.org/3/c-api/object.html?highlight=pyobject_richcomparebool#c.PyObject_RichCompareBool) and understood it is intended, but there should be gentle comment to tell users this behaviour.
History
Date User Action Args
2020-06-20 09:20:57tamuheysetrecipients: + tamuhey
2020-06-20 09:20:57tamuheysetmessageid: <1592644857.04.0.72570245151.issue41049@roundup.psfhosted.org>
2020-06-20 09:20:57tamuheylinkissue41049 messages
2020-06-20 09:20:56tamuheycreate