Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
On Sun, Jan 05, 2020 at 02:19:49AM +0000, Tim Peters wrote: > Since, best I can recall, nobody has asked about this before See discussion here: https://mail.python.org/archives/list/python-...@python.org/message/5AQMG6ADD6RGPLI3VTILB2MKXMBFTIGU/ which followed from discussions on sort order. I was asked to provide a PR, but I have technical difficulties with github. I think it's sufficient to say that sorting relies only on the `<` operator, and link to the section of the docs that map special dunders to comparison operators, namely here: https://docs.python.org/3/reference/datamodel.html#object.__lt__ where it goes into detail about reflected methods and such. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39210> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com