Author vstinner
Recipients Brian.Merrell, belopolsky, ezio.melotti, merrellb, rhettinger, vstinner
Date 2011-04-13.12:37:44
SpamBayes Score 0.000619047
Marked as misclassified No
Message-id <>
print(repr(json.loads(json.dumps({u"my_key": u'\uda00'}))['my_key'])):
 - displays u'\uda00' in Python 2.7, 3.2 and 3.3
 - raises a ValueError('Invalid \uXXXX escape: ...') on loads() in Python 2.6
 - raises a ValueError('Unpaired high surrogate: ...') on loads() in Python 3.1

json version changed in Python 2.7: see the issue #4136.

See also this important change in simplejson:

We only fix security bugs in Python 2.6, not bugs. I don't think that this issue is a security bug in Python 2.6.

We might change Python 3.1 behaviour.
Date User Action Args
2011-04-13 12:37:45vstinnersetrecipients: + vstinner, rhettinger, belopolsky, ezio.melotti, merrellb, Brian.Merrell
2011-04-13 12:37:45vstinnersetmessageid: <>
2011-04-13 12:37:44vstinnerlinkissue11489 messages
2011-04-13 12:37:44vstinnercreate