Message215105
Python 3.3.4 (default, Feb 21 2014, 18:00:34)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from json import dumps
>>> dumps({True: True, False: False, None: None, 42: 42})
'{"false": false, "true": true, "42": 42, "null": null}'
>>>
This implicit stringification of non-string dictionary keys does not currently appear to be documented. |
|
Date |
User |
Action |
Args |
2014-03-29 02:02:12 | cvrebert | set | recipients:
+ cvrebert, docs@python |
2014-03-29 02:02:12 | cvrebert | set | messageid: <1396058532.4.0.747084200104.issue21092@psf.upfronthosting.co.za> |
2014-03-29 02:02:12 | cvrebert | link | issue21092 messages |
2014-03-29 02:02:11 | cvrebert | create | |
|