[issue10042] functools.total_ordering fails to handle NotImplemented correctly

Raymond Hettinger report at bugs.python.org
Thu Jul 11 09:10:21 CEST 2013


Raymond Hettinger added the comment:

After more thought, I'm changing this to Py3.4 only.  For prior versions, I'm content to document that there is no support for NotImplemented, and if that is needed, then people should write-out all six rich comparisons without using the total ordering decorator.

I don't think it is a good idea to introduce the new behaviors into otherwise stable point releases.  This patch is somewhat complex and has potential for bugs, unexpected behaviors, misunderstandings, and intra-version compatability issues (like the problems that occurred when True and False were added in a point release many years ago).

----------
versions: +Python 3.4 -Python 2.7, Python 3.2, Python 3.3

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


More information about the Python-bugs-list mailing list