[issue41049] Document pointer comparison in PyObject_RichCompareBool()

2020-06-20 Thread tamuhey
tamuhey added the comment: > Hmm, I missed it. There is already a note in the link you provided I've read the comment before posting this issue. But I think there should be the following info: 1. example (float("nan")) 2. the result is inconsistent with PyObject_RichCompare --

[issue41049] Document pointer comparison in PyObject_RichCompareBool()

2020-06-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hmm, I missed it. There is already a note in the link you provided" """Note If o1 and o2 are the same object, PyObject_RichCompareBool() will always return 1 for Py_EQ and 0 for Py_NE.""" -- resolution: -> out of date stage: patch review -> reso

[issue41049] Document pointer comparison in PyObject_RichCompareBool()

2020-06-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +20174 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20999 ___ Python tracker __

[issue41049] Document pointer comparison in PyObject_RichCompareBool()

2020-06-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: PyObject_RichCompareBool(nan, nan, eq) can be True -> Document pointer comparison in PyObject_RichCompareBool() ___ Python tracker ___