[docs] [issue10912] PyObject_RichCompare differs in behaviour from PyObject_RichCompareBool ; difference not noted in documentation
report at bugs.python.org
Sun Jan 16 00:23:19 CET 2011
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
-1 on PyObject_RichCompareBoolEx() for 3.3 -- it is simply an invitation to shoot yourself (or others) in the foot.
I've not seen real world code using bool(a==b) or its C equivalent, so it's hard to believe that there is a use case here (unless you're trying to commit atrocities with NaN-like objects).
Python tracker <report at bugs.python.org>
More information about the docs