Message244352
> 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'>) |
|
Date |
User |
Action |
Args |
2015-05-28 23:10:57 | pitrou | set | recipients:
+ pitrou, r.david.murray, thomas-arildsen |
2015-05-28 23:10:57 | pitrou | set | messageid: <1432854657.44.0.0765950912915.issue24313@psf.upfronthosting.co.za> |
2015-05-28 23:10:57 | pitrou | link | issue24313 messages |
2015-05-28 23:10:57 | pitrou | create | |
|