Message119732
json is defined as mapping the JSON string type into unicodes. This works as advertised in Python 2.6 and 3, but in Python 2.7 it returns a str.
% python2.6 -c "import json; print json.loads('{\"foo\":\"bar\"}')"
{u'foo': u'bar'}
% python2.7 -c "import json; print json.loads('{\"foo\":\"bar\"}')"
{'foo': 'bar'}
Platform tested so far: Ubuntu 10.10 amd64. |
|
Date |
User |
Action |
Args |
2010-10-27 20:41:17 | barry | set | recipients:
+ barry |
2010-10-27 20:41:17 | barry | set | messageid: <1288212077.55.0.987280574244.issue10216@psf.upfronthosting.co.za> |
2010-10-27 20:41:16 | barry | link | issue10216 messages |
2010-10-27 20:41:16 | barry | create | |
|