[issue11576] timedelta subtraction glitch on big timedelta values

Gökçen Eraslan report at bugs.python.org
Thu Aug 25 09:25:23 CEST 2011


Gökçen Eraslan <gokcen at pardus.org.tr> added the comment:

I can still reproduce that error with Python 2.7.2:

Python 2.7.1 (r271:86832, Apr 27 2011, 15:42:42) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import *
>>> timedelta(999999999, 86399, 999999) - timedelta(999999999, 86399, 999998)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: days=-1000000000; must have magnitude <= 999999999
>>> 

and I see that patch is applied in 2.7.2.

----------
nosy: +Gökçen.Eraslan

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11576>
_______________________________________


More information about the Python-bugs-list mailing list