[issue23699] Add a macro to ease writing rich comparisons

Stefan Krah report at bugs.python.org
Thu May 21 15:21:09 CEST 2015


Stefan Krah added the comment:

NotImplemented is a non-error return value that's used when the
objects cannot be compared, e.g. when the function receives Py_LT
but the objects are unorderable.

Getting a value outside {Py_EQ, ...} is a hard error that cannot
occur in a correct program.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23699>
_______________________________________


More information about the Python-bugs-list mailing list