This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author LambertDW
Recipients LambertDW, barronh
Date 2009-03-11.16:06:12
SpamBayes Score 2.579048e-13
Marked as misclassified No
Message-id <1236787575.57.0.890381908309.issue5476@psf.upfronthosting.co.za>
In-reply-to
Content
With older versions of each timedelta rejects the data type.  Maybe
that's a good resolution?

$ /usr/local/bin/python2.4 
Python 2.4.2 (#2, Jul  7 2006, 10:20:47) 
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version.version
'0.9.8'
>>> from numpy import int32
>>> from datetime import timedelta
>>> assert timedelta(seconds = 36) == timedelta(seconds = int32(36))
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unsupported type for timedelta seconds component: int32scalar
>>>
History
Date User Action Args
2009-03-11 16:06:15LambertDWsetrecipients: + LambertDW, barronh
2009-03-11 16:06:15LambertDWsetmessageid: <1236787575.57.0.890381908309.issue5476@psf.upfronthosting.co.za>
2009-03-11 16:06:13LambertDWlinkissue5476 messages
2009-03-11 16:06:12LambertDWcreate