This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients Windson Yang, tim.peters
Date 2019-10-29.03:27:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572319673.55.0.716322154278.issue38626@roundup.psfhosted.org>
In-reply-to
Content
So as far as possible, CPython only uses __lt__ ("<") element comparisons for its order-sensitive algorithms.  This is documented for list.sort(), but the bisect and heapq modules strive to do the same.

The point is to minimize the number of comparison methods a new type needs to implement to participate (and "just one:  __lt__" is ideal).

Your change would require they implement "__le__" too, so is unlikely to be accepted for CPython.
History
Date User Action Args
2019-10-29 03:27:53tim.peterssetrecipients: + tim.peters, Windson Yang
2019-10-29 03:27:53tim.peterssetmessageid: <1572319673.55.0.716322154278.issue38626@roundup.psfhosted.org>
2019-10-29 03:27:53tim.peterslinkissue38626 messages
2019-10-29 03:27:53tim.peterscreate