14.12.19 12:45, Steven D'Aprano пише:
The list.sort method is documented to only use less than:
https://docs.python.org/3/library/stdtypes.html#list.sort
but I don't think that is correct, it seems to use greater than if it
exists and less than doesn't. My understanding is that items need to
define one of l.t. or g.t. to make it sortable, not the full complement
of six rich comparison methods.
What evidence do you have that it is not correct?
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/ZRWAQLPB4SIT7BWLOOKK2DGEK7KJZ635/
Code of Conduct: http://python.org/psf/codeofconduct/