Message110788
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. |
|
Date |
User |
Action |
Args |
2010-07-19 17:55:31 | belopolsky | set | recipients:
+ belopolsky, grubert, LambertDW, barronh |
2010-07-19 17:55:31 | belopolsky | set | messageid: <1279562131.25.0.81656737063.issue5476@psf.upfronthosting.co.za> |
2010-07-19 17:55:29 | belopolsky | link | issue5476 messages |
2010-07-19 17:55:28 | belopolsky | create | |
|