Message94384
The issue is present in Python 3.0 and 2.5 as well.
Python 2.5.1 (r251:54863, Jul 17 2008, 13:21:31)
[GCC 4.3.1 20080708 (Red Hat 4.3.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> t0=datetime.datetime(1,1,1)
>>> d1,d2,d3=map(datetime.timedelta, range(1,4))
>>> t0-d1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: date value out of range
>>> t0-d2
datetime.datetime(1, 0, 255, 0, 0)
I think this is bug in datetime for all Python versions |
|
Date |
User |
Action |
Args |
2009-10-23 13:06:02 | pythonhacker | set | recipients:
+ pythonhacker, mark.leander |
2009-10-23 13:06:02 | pythonhacker | set | messageid: <1256303162.64.0.901618309016.issue7150@psf.upfronthosting.co.za> |
2009-10-23 13:06:01 | pythonhacker | link | issue7150 messages |
2009-10-23 13:06:00 | pythonhacker | create | |
|