Message83471
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
>>> |
|
Date |
User |
Action |
Args |
2009-03-11 16:06:15 | LambertDW | set | recipients:
+ LambertDW, barronh |
2009-03-11 16:06:15 | LambertDW | set | messageid: <1236787575.57.0.890381908309.issue5476@psf.upfronthosting.co.za> |
2009-03-11 16:06:13 | LambertDW | link | issue5476 messages |
2009-03-11 16:06:12 | LambertDW | create | |
|