[issue10038] Returntype of json.loads() on strings
Nik Tautenhahn
report at bugs.python.org
Wed Oct 6 17:36:58 CEST 2010
New submission from Nik Tautenhahn <nik at livinglogic.de>:
Hi,
before 2.7, an
import json
json.loads('"abc"')
yielded u"abc".
in 2.7 I get
"abc" (a byte string).
I would have expected an entry in "news" or "What's new in 2.7" why this change happened. In addition, all examples at http://docs.python.org/library/json are wrong for Python 2.7 if json.loads is involved.
Any insight on this?
best regards,
Nik
----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 118069
nosy: docs at python, llnik
priority: normal
severity: normal
status: open
title: Returntype of json.loads() on strings
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10038>
_______________________________________
More information about the Python-bugs-list
mailing list