Message215129
> 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 |
|
Date |
User |
Action |
Args |
2014-03-29 13:34:14 | berker.peksag | set | recipients:
+ berker.peksag, cvrebert, docs@python |
2014-03-29 13:34:14 | berker.peksag | set | messageid: <1396100054.88.0.903178645801.issue21092@psf.upfronthosting.co.za> |
2014-03-29 13:34:14 | berker.peksag | link | issue21092 messages |
2014-03-29 13:34:14 | berker.peksag | create | |
|