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


before 2.7, an
import json

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,

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>

More information about the docs mailing list