Author belopolsky
Recipients belopolsky
Date 2015-02-25.17:05:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424883947.81.0.425363902916.issue23521@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import sys
>>> sys.modules['_datetime'] = None
>>> from datetime import timedelta
>>> timedelta(seconds=1)*0.6112295
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/a/Work/cpython/Lib/datetime.py", line 519, in __mul__
    return self * a / b
  File "/Users/a/Work/cpython/Lib/datetime.py", line 516, in __mul__
    self._microseconds * other)
  File "/Users/a/Work/cpython/Lib/datetime.py", line 411, in __new__
    raise OverflowError("timedelta # of days is too large: %d" % d)
OverflowError: timedelta # of days is too large: 63720670102


C implementation is unaffected:

>>> from datetime import timedelta
>>> timedelta(seconds=1)*0.6112295
datetime.timedelta(0, 0, 611229)
History
Date User Action Args
2015-02-25 17:05:47belopolskysetrecipients: + belopolsky
2015-02-25 17:05:47belopolskysetmessageid: <1424883947.81.0.425363902916.issue23521@psf.upfronthosting.co.za>
2015-02-25 17:05:47belopolskylinkissue23521 messages
2015-02-25 17:05:47belopolskycreate