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

Martin v. Löwis report at bugs.python.org
Fri Mar 13 19:42:54 CET 2009

Martin v. Löwis <martin at v.loewis.de> added the comment:

> As the documentation section of
> http://docs.python.org/reference/datamodel.html#object.__lt__ needs to
> be updated as well to mark the eventual solution as the recommended easy
> way to provide total ordering.

This is the 2.6 version. What about the 3.0 version in


needs to be updated?

> Raymond's recipe at http://code.activestate.com/recipes/576685/ looks
> more or less complete, do you feel that his posting on the mailing list
> does not count as proposal? I submitted the feature request instead of
> him because I was the one who noticed the problem (as discussed on the
> mailing list) and felt "responsible" to report it here.

I see. So it's a feature request.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list