Raymond Hettinger added the comment:
The docs are correct but are apparently misleading ("rich comparison methods"
means all six comparison methods while "rich comparison ordering methods" means
only the four that provide order). That said, I think it would be perfectly
reasonable to amend the code to supply __ne__ if it is missing. That would be
reduce the likelihood of bugs arising when supplied only __eq__ and one of the
four ordering methods but not __ne__.
----------
assignee: -> ncoghlan
keywords: +patch
Added file: http://bugs.python.org/file41180/total_ordering_ne.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25732>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com