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 <1279562131.25.0.81656737063.issue5476@psf.upfronthosting.co.za>
In-reply-to
Content
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)
0

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

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