STINNER Victor added the comment: What is your favorite repr() for datetime.timedelta(seconds=0)?
Since it's hard to decide which unit is the best, I suggest to not write any unit: either "datetime.timedelta(0)" or "datetime.timedelta()" is fine with me. In fact, "datetime.timedelta(seconds=0)" is also ok, since seconds is the most common unit, no? (Ok, to be honest, I don't really care. But I wanted to have a discussion on this issue ;-)) ---------- _______________________________________ 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