Menu

#4 Writer doesn't handle Long integers

closed-fixed
nobody
None
5
2005-08-10
2005-05-21
No

In Python 2.3.5, json.py fails when writing long
values. For example:

import json
json.write(12345678901234567890)

results in

-------
WriteException: Cannot write in JSON: 12345678901234567890
-------

I've attached a patch that fixes the problem, and
includes a couple more unittests that check handling of
large values.

Discussion

  • Barry Pederson

    Barry Pederson - 2005-05-21

    Patch to support long values

     
  • Patrick D Logan

    Patrick D Logan - 2005-08-10
    • status: open --> closed-fixed
     

Log in to post a comment.