Message244363
I wouldn't call it a bug in Numpy (a quirk perhaps?). Numpy ints are fixed-width ints, so some of them can inherit from Python int in 2.x, but not in 3.x.
But not all of them do, since the bitwidth can be different:
>>> issubclass(np.int64, int)
True
>>> issubclass(np.int32, int)
False
>>> issubclass(np.int16, int)
False |
|
Date |
User |
Action |
Args |
2015-05-29 09:40:57 | pitrou | set | recipients:
+ pitrou, r.david.murray, serhiy.storchaka, thomas-arildsen |
2015-05-29 09:40:57 | pitrou | set | messageid: <1432892457.02.0.670681098421.issue24313@psf.upfronthosting.co.za> |
2015-05-29 09:40:57 | pitrou | link | issue24313 messages |
2015-05-29 09:40:56 | pitrou | create | |
|