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 belopolsky
Recipients LambertDW, barronh, belopolsky, grubert
Date 2010-07-05.20:15:54
SpamBayes Score 2.0866642e-13
Marked as misclassified No
Message-id <>
This is a bit strange.  timedelta is accepting int subclass instances:

>>> class I(int):
...    pass
>>> timedelta(days = I(36))

but not numpy.unt_:

>>> timedelta(days = int_(36))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported type for timedelta days component: numpy.int64

which is also a subclass of int:

>>> isinstance(int_(36), int)

This is probably a numpy quirk rather than python issue, but is probably worth another look.
Date User Action Args
2010-07-05 20:15:56belopolskysetrecipients: + belopolsky, grubert, LambertDW, barronh
2010-07-05 20:15:56belopolskysetmessageid: <>
2010-07-05 20:15:54belopolskylinkissue5476 messages
2010-07-05 20:15:54belopolskycreate