[issue23123] Only READ support for Decimal in json

Bob Ippolito report at bugs.python.org
Mon Dec 29 08:31:06 CET 2014


Bob Ippolito added the comment:

I'm sure there's some hack that would allow you to preserve the input. I would try using parse_float and have it return some object that preserves the string and will be output in precisely the same way. It may need to be a Decimal subclass. I'm traveling for the next few weeks so I won't have much of a chance to investigate myself.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23123>
_______________________________________


More information about the Python-bugs-list mailing list