[docs] [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>

More information about the docs mailing list