Message110788
| 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: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 |
|