]> granicus.if.org Git - python/commit
Issue #23517: datetime.timedelta constructor now rounds microseconds to nearest
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 17:16:07 +0000 (19:16 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 2 Sep 2015 17:16:07 +0000 (19:16 +0200)
commit2ec558739e6bd32365e1a883889f9d5372b35719
tree96eebd9fb83fcc59feb0ee478f6cbd0d105a3d29
parent8cbb013553c07e2577d08c7046c0eee70d0c0b66
Issue #23517: datetime.timedelta constructor now rounds microseconds to nearest
with ties going away from zero (ROUND_HALF_UP), as Python 2 and Python older
than 3.3, instead of rounding to nearest with ties going to nearest even
integer (ROUND_HALF_EVEN).
Include/pytime.h
Lib/datetime.py
Lib/test/datetimetester.py
Misc/NEWS
Modules/_datetimemodule.c
Python/pytime.c