[issue24313] json fails to serialise numpy.int64
R. David Murray
report at bugs.python.org
Fri May 29 13:59:03 CEST 2015
R. David Murray added the comment:
So in python2, some were json serializable and some weren't? Yes, I'd call that a quirk :)
So back to the question of whether it makes sense for json to look for __index__ to decide if something can be serialized as an int. If not, I don't think there is anything we can do.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24313>
_______________________________________
More information about the Python-bugs-list
mailing list