This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cvrebert
Recipients cvrebert, docs@python
Date 2014-03-29.02:02:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396058532.4.0.747084200104.issue21092@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-29 02:02:12cvrebertsetrecipients: + cvrebert, docs@python
2014-03-29 02:02:12cvrebertsetmessageid: <1396058532.4.0.747084200104.issue21092@psf.upfronthosting.co.za>
2014-03-29 02:02:12cvrebertlinkissue21092 messages
2014-03-29 02:02:11cvrebertcreate