[issue10038] json.loads() on str should return unicode, not str

Raymond Hettinger report at bugs.python.org
Tue Nov 2 21:35:47 CET 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

To mitigate possible negative impacts from changing the return type, consider adding a parse_string hook that lets users control the return type:

   json.loads(f, parse_int=decimal.Decimal, parse_string=repr)

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list