Author belopolsky
Recipients belopolsky, mark.dickinson, mcherm, rhettinger, stutzbach, tim.peters, vstinner
Date 2010-06-24.21:18:05
SpamBayes Score 0.000449273
Marked as misclassified No
Message-id <1277414287.36.0.533844127687.issue8860@psf.upfronthosting.co.za>
In-reply-to
Content
Similar problem affects fromtimestamp() constructors:

>>> datetime.fromtimestamp(0.0078125)-datetime.fromtimestamp(0)
datetime.timedelta(0, 0, 7813)
>>> datetime.utcfromtimestamp(0.0078125)-datetime.utcfromtimestamp(0)
datetime.timedelta(0, 0, 7813)

both rounded to odd, but

>>> 0.0078125*timedelta(seconds=1)
datetime.timedelta(0, 0, 7812)

is correctly rounded to even.
History
Date User Action Args
2010-06-24 21:18:07belopolskysetrecipients: + belopolsky, tim.peters, mcherm, rhettinger, mark.dickinson, vstinner, stutzbach
2010-06-24 21:18:07belopolskysetmessageid: <1277414287.36.0.533844127687.issue8860@psf.upfronthosting.co.za>
2010-06-24 21:18:05belopolskylinkissue8860 messages
2010-06-24 21:18:05belopolskycreate