[issue8860] Rounding in timedelta constructor is inconsistent with that in timedelta arithmetics
Alexander Belopolsky
report at bugs.python.org
Mon May 31 21:09:08 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Here is a shorter example of inconsistent behavior:
>>> 0.5 * timedelta(microseconds=1)
datetime.timedelta(0)
>>> timedelta(microseconds=0.5)
datetime.timedelta(0, 0, 1)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8860>
_______________________________________
More information about the Python-bugs-list
mailing list