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-19.17:55:28
SpamBayes Score 0.00045889642
Marked as misclassified No
Message-id <>
As I suspected, datetime not recognizing numpy.int_ as a valid input is a numpy issue.  Unlike regular int subclasses, numpy.int_ does not have Py_TPFLAGS_INT_SUBCLASS flag set:

>>> numpy.int_.__flags__ & (1<<23)

>>> class foo(int): pass
>>> foo.__flags__ & (1<<23)

What python can improve in this area is documentation.  See issue9307.
Date User Action Args
2010-07-19 17:55:31belopolskysetrecipients: + belopolsky, grubert, LambertDW, barronh
2010-07-19 17:55:31belopolskysetmessageid: <>
2010-07-19 17:55:29belopolskylinkissue5476 messages
2010-07-19 17:55:28belopolskycreate