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 berker.peksag
Recipients berker.peksag, cvrebert, docs@python
Date 2014-03-29.13:34:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396100054.88.0.903178645801.issue21092@psf.upfronthosting.co.za>
In-reply-to
Content
> This implicit stringification of non-string dictionary keys does not
> currently appear to be documented.

I think this is part of the JSON spec. See http://json.org/object.gif for example.

Also, this is already documented in the json.dumps() documentation:

> Keys in key/value pairs of JSON are always of the type str. When a
> dictionary is converted into JSON, all the keys of the dictionary are
> coerced to strings.

http://docs.python.org/3.4/library/json.html#json.dumps
History
Date User Action Args
2014-03-29 13:34:14berker.peksagsetrecipients: + berker.peksag, cvrebert, docs@python
2014-03-29 13:34:14berker.peksagsetmessageid: <1396100054.88.0.903178645801.issue21092@psf.upfronthosting.co.za>
2014-03-29 13:34:14berker.peksaglinkissue21092 messages
2014-03-29 13:34:14berker.peksagcreate