[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

David W. Lambert report at bugs.python.org
Thu Mar 12 21:10:39 CET 2009


David W. Lambert <lambertdw at corning.com> added the comment:

(As I recall) in python-dev mailing list Ray claimed he could clean up a
cited active state recipe to address this issue.  He succeeded to the
extent I'm aware---he's the author of
http://code.activestate.com/recipes/576685/.

I haven't used the redundant >, >= comparisons operators in code since
1981.  The chances of simplifying python by removing them from the
language are None, but the mistake predates python by 10**n years, where
(3 <= n <= 7) or (7 >= n >= 3).

----------

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


More information about the Python-bugs-list mailing list