[issue10042] functools.total_ordering fails to handle NotImplemented correctly
Nick Coghlan
report at bugs.python.org
Tue Jul 9 02:14:38 CEST 2013
Nick Coghlan added the comment:
I'm actually not sure which of us is correct - Katie and I will be looking into it further today to compare the existing implementation, my proposal and yours to see if there's a clear winner in terms of consistent.
It may be that we end up choosing the version that pushes towards more correct behaviour, since types incorrectly returning True or False from comparisons (instead of NotImplemented) is actually a pretty common bug preventing the creation of unrelated types that interoperate cleanly with an existing type.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10042>
_______________________________________
More information about the Python-bugs-list
mailing list