Author haypo
Recipients belopolsky, haypo, martin.panter, musically_ut, serhiy.storchaka
Date 2017-06-29.13:50:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498744206.39.0.487843868902.issue30302@psf.upfronthosting.co.za>
In-reply-to
Content
> Between datetime.timedelta(0) and datetime.timedelta(seconds=0), I am ambivalent but I prefer the latter for consistency with the other repr.

I read your latest PR. Now I don't like seconds=0 anymore. I would prefer a datetime.timedelta(0) special case.

In the Python implementation, add:

if not args:
   args.append('0')

and remove the "not days and not microseconds" special case.

datetime.timedelta(0) was always valid, and IMHO it's explicitly enough.

I'm also ok with "datetime.timedelta()" alone, since it was also always accepted and is also well defined.
History
Date User Action Args
2017-06-29 13:50:06hayposetrecipients: + haypo, belopolsky, martin.panter, serhiy.storchaka, musically_ut
2017-06-29 13:50:06hayposetmessageid: <1498744206.39.0.487843868902.issue30302@psf.upfronthosting.co.za>
2017-06-29 13:50:06haypolinkissue30302 messages
2017-06-29 13:50:06haypocreate