Author llnik
Recipients docs@python, llnik
Date 2010-10-06.15:36:55
SpamBayes Score 9.89885e-07
Marked as misclassified No
Message-id <1286379418.7.0.631387512608.issue10038@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-10-06 15:36:58llniksetrecipients: + llnik, docs@python
2010-10-06 15:36:58llniksetmessageid: <1286379418.7.0.631387512608.issue10038@psf.upfronthosting.co.za>
2010-10-06 15:36:56llniklinkissue10038 messages
2010-10-06 15:36:55llnikcreate