[Datetime-SIG] Another round on error-checking

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Aug 31 22:24:42 CEST 2015

On Mon, Aug 31, 2015 at 4:17 PM, Tim Peters <tim.peters at gmail.com> wrote:

> The easiest way out of this particular puzzle is, I believe, to say
> that two datetimes identical except for `fold` do _not_ compare equal.
> `fold` breaks the tie in the obvious way (the one with fold==1 is
> "greater").

I am afraid you are right, but proving that we will not break naive (fold
unaware) programs will be harder in this case.   Let me think some more
about this.

Meanwhile, would you see any problem with not(x - y) not implying x == y?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150831/0dafbc41/attachment.html>

More information about the Datetime-SIG mailing list