Message297269
> 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. |
|
Date |
User |
Action |
Args |
2017-06-29 13:50:06 | vstinner | set | recipients:
+ vstinner, belopolsky, martin.panter, serhiy.storchaka, musically_ut |
2017-06-29 13:50:06 | vstinner | set | messageid: <1498744206.39.0.487843868902.issue30302@psf.upfronthosting.co.za> |
2017-06-29 13:50:06 | vstinner | link | issue30302 messages |
2017-06-29 13:50:06 | vstinner | create | |
|