STINNER Victor added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30302> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com