[issue10042] functools.total_ordering fails to handle NotImplemented correctly

Nick Coghlan report at bugs.python.org
Tue Jul 9 15:03:48 CEST 2013


Nick Coghlan added the comment:

I think I spotted a logic bug in _not_op_and_not_eq (it uses "or" instead
of  "and" in the final line) , so I suspect we still have a missing test
case in the latest patch. (My fault - I should have suggested using
coverage.py to ensure all the branches were covered by the chosen test
cases).

The general structure of the proposed update is complete though.

----------

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


More information about the Python-bugs-list mailing list