Message94384
| Author |
pythonhacker |
| Recipients |
mark.leander, pythonhacker |
| Date |
2009年10月23日.13:06:00 |
| SpamBayes Score |
8.937295e-15 |
| Marked as misclassified |
No |
| Message-id |
<1256303162.64.0.901618309016.issue7150@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|