Message133662
| Author |
vstinner |
| Recipients |
Brian.Merrell, belopolsky, ezio.melotti, merrellb, rhettinger, vstinner |
| Date |
2011年04月13日.12:37:44 |
| SpamBayes Score |
0.0006190466 |
| Marked as misclassified |
No |
| Message-id |
<1302698265.11.0.222002159918.issue11489@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|