In a message of Sat, 12 Sep 2015 20:49:12 -0400, Terry Reedy writes:
>and, if we are stuck with <-intransitivity, what do we do? If 
>back-compatibility allowed, I might suggest defining 'lt' or 'less' 
>rather than '__lt__' so that sort and bisect don't work with DateTimes. 
>Then document that the function is not transitive.

I think it would be better to document what you are supposed to
do if you have a list of DateTimes and want to sort them, as a
way to get a list of times sorted from the earliest to the latest.

Laura

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to