Message 416997 - Python tracker

Message416997

Author rhettinger
Recipients CendioOssman, rhettinger, steven.daprano
Date 2022-04-08.17:45:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649439922.96.0.430732871164.issue47259@roundup.psfhosted.org>
In-reply-to
Content
I don't think splashing this everywhere else in the docs would be helpful.  Tools like list.sort, sorted, min, max, nlargest, nsmallest use whatever sort order is provided by the underlying object whether it be a string, tuple, float, or int.

The section on expressions is the intended place to cover how comparison are defined for core objects:  https://docs.python.org/3/reference/expressions.html#value-comparisons

As suggested, I will edit the sorting howto to be cleared that locale aware sort ordering refers to alphabetical orderings which can vary (for example, the Spanish ll sorts differently in different locales).
History
Date User Action Args
2022-04-08 17:45:22rhettingersetrecipients: + rhettinger, steven.daprano, CendioOssman
2022-04-08 17:45:22rhettingersetmessageid: <1649439922.96.0.430732871164.issue47259@roundup.psfhosted.org>
2022-04-08 17:45:22rhettingerlinkissue47259 messages
2022-04-08 17:45:22rhettingercreate