Author pitrou
Recipients pitrou, r.david.murray, serhiy.storchaka, thomas-arildsen
Date 2015-05-29.09:40:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432892457.02.0.670681098421.issue24313@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-05-29 09:40:57pitrousetrecipients: + pitrou, r.david.murray, serhiy.storchaka, thomas-arildsen
2015-05-29 09:40:57pitrousetmessageid: <1432892457.02.0.670681098421.issue24313@psf.upfronthosting.co.za>
2015-05-29 09:40:57pitroulinkissue24313 messages
2015-05-29 09:40:56pitroucreate