Message151066
$ ipython
In [1]: type(json.dumps({'a':'b'}, ensure_ascii=False))
Out[1]: <type 'str'>
In [2]: type(json.dumps({'a':u'b'}, ensure_ascii=False))
Out[2]: <type 'unicode'>
-----------------------
Documentation:
If ensure_ascii is False, then the return value will be a unicode instance.
--------------------------------
Not applicable to python3 |
|
Date |
User |
Action |
Args |
2012-01-11 16:41:19 | socketpair | set | recipients:
+ socketpair, docs@python |
2012-01-11 16:41:19 | socketpair | set | messageid: <1326300079.82.0.279410736545.issue13769@psf.upfronthosting.co.za> |
2012-01-11 16:41:19 | socketpair | link | issue13769 messages |
2012-01-11 16:41:19 | socketpair | create | |
|