[issue10042] total_ordering

Lennart Regebro report at bugs.python.org
Wed Apr 20 18:09:57 CEST 2011


Lennart Regebro <regebro at gmail.com> added the comment:

I was also surprised by the special return value, but it seems a bit overkill to change the implementation of rich comparison operators just because it's tricky to make a short and pretty class decorator that extends some operators to all operators. :)

And removing the support for returning NotImplemented is something that only can be done at the earliest in 3.4 anyway.

----------

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


More information about the Python-bugs-list mailing list