Code review comment for lp:~jkakar/txfluiddb/failing-tests

Revision history for this message
Tristan Seligmann (mithrandi) wrote :

As far as I can tell, if the argument to json.loads is unicode, then all strings embedded in the resulting return value will always be unicode. For example:

>>> simplejson.loads('[{"foo": "bar"}, "baz"]')
[{'foo': 'bar'}, 'baz']
>>> simplejson.loads(u'[{"foo": "bar"}, "baz"]')
[{u'foo': u'bar'}, u'baz']

« Back to merge proposal