[Datetime-SIG] Another round on error-checking
Alexander Belopolsky
alexander.belopolsky at gmail.com
Tue Sep 1 16:41:28 CEST 2015
On Tue, Sep 1, 2015 at 1:23 AM, Tim Peters <tim.peters at gmail.com> wrote:
> I can see one kind of annoyance that would remain:
>
> dt2 = dt1 + a_timedelta
>
> is currently specified to force dt2.fold==0 even if dt1.fold==1. But
> that may not make good sense.
>
Note that dt2.fold==0 even if dt1.fold==1 *and* a_timedelta==timedelta(0).
This is what I call "fold-unaware" arithmetic. It is consistent with
dt2==dt1.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150901/40c6a916/attachment.html>
More information about the Datetime-SIG
mailing list