[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as duplicate. -- nosy: +xtreak resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> json fails to serialise numpy.int64 ___ Python tracker

[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Tony Hirst
Tony Hirst added the comment: Argh: previous was incorrect associated issue: correct issue: https://bugs.python.org/issue24313 -- ___ Python tracker ___

[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Tony Hirst
Tony Hirst added the comment: Previously posted issue: https://bugs.python.org/issue22107 -- ___ Python tracker ___ ___

[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Tony Hirst
Tony Hirst added the comment: Apols - this is probably strictly a numpy issue. See: https://github.com/numpy/numpy/issues/12481 -- ___ Python tracker ___

[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Tony Hirst
New submission from Tony Hirst : import json import numpy as np json.dumps( {'int64': np.int64(1)}) TypeError: Object of type int64 is not JSON serializable --- TypeError Traceback

[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Tony Hirst
Change by Tony Hirst : -- components: Library (Lib) nosy: Tony Hirst priority: normal severity: normal status: open title: json serialiser errors with numpy int64 versions: Python 3.7 ___ Python tracker