Message133662
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:
http://code.google.com/p/simplejson/source/detail?r=113
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:45 | vstinner | set | recipients:
+ vstinner, rhettinger, belopolsky, ezio.melotti, merrellb, Brian.Merrell |
2011-04-13 12:37:45 | vstinner | set | messageid: <1302698265.11.0.222002159918.issue11489@psf.upfronthosting.co.za> |
2011-04-13 12:37:44 | vstinner | link | issue11489 messages |
2011-04-13 12:37:44 | vstinner | create | |
|