Author pitrou
Recipients pitrou, r.david.murray, thomas-arildsen
Date 2015-05-28.23:10:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432854657.44.0.0765950912915.issue24313@psf.upfronthosting.co.za>
In-reply-to
Content
> It looks like json doesn't check for __index__, and I wonder if it should.

I don't know. Simply, under 2.7, int64 inherits from int:

>>> np.int64.__mro__
(<type 'numpy.int64'>, <type 'numpy.signedinteger'>, <type 'numpy.integer'>, <type 'numpy.number'>, <type 'numpy.generic'>, <type 'int'>, <type 'object'>)

while it doesn't under 3.x:

>>> np.int64.__mro__ 
(<class 'numpy.int64'>, <class 'numpy.signedinteger'>, <class 'numpy.integer'>, <class 'numpy.number'>, <class 'numpy.generic'>, <class 'object'>)
History
Date User Action Args
2015-05-28 23:10:57pitrousetrecipients: + pitrou, r.david.murray, thomas-arildsen
2015-05-28 23:10:57pitrousetmessageid: <1432854657.44.0.0765950912915.issue24313@psf.upfronthosting.co.za>
2015-05-28 23:10:57pitroulinkissue24313 messages
2015-05-28 23:10:57pitroucreate