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 steven.daprano
Recipients docs@python, mark.dickinson, rhettinger, steven.daprano, tim.peters, yanmitrofanov
Date 2020-01-05.04:37:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20200105043715.GO21130@ando.pearwood.info>
In-reply-to <1578190789.18.0.427802227496.issue39210@roundup.psfhosted.org>
Content
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-dev@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.
History
Date User Action Args
2020-01-05 04:37:37steven.dapranosetrecipients: + steven.daprano, tim.peters, rhettinger, mark.dickinson, docs@python, yanmitrofanov
2020-01-05 04:37:37steven.dapranolinkissue39210 messages
2020-01-05 04:37:36steven.dapranocreate