Marc-Andre Lemburg added the comment: On 03.08.2013 00:47, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > >> Does a result of one and one half seconds make sense as the result of a >> floor division operation? > > Yes. Timedeltas behave as integers containing the number of microseconds: > >>>> timedelta(microseconds=1) / 2 > datetime.timedelta(0)
I think that's a very obscure interpretation of floor division for timedeltas :-) IMO, floor division result should work on seconds, not microseconds. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18629> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com