The comparison methods on Python's str are codepoint-by-codepoint.
A neat fact about UTF-8 is that bytewise comparisons on UTF-8 are
equivalent to doing codepoint comparisons.
But this isn't relevant to Python's str, because Python's str never uses UTF-8.


On Wed, Oct 12, 2016 at 2:45 PM, Elliot Gorokhovsky
<> wrote:
>> So what's Python doing? Is it a codepoint ordering?
> is the python interpreter supposed to know what language strings
> are in? There is a unique ordering of unicode strings defined by the unicode
> standard, AFAIK.
> If you want to sort by natural language ordering, see here:
> _______________________________________________
> Python-ideas mailing list
> Code of Conduct:

Nathaniel J. Smith --
Python-ideas mailing list
Code of Conduct:

Reply via email to