Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r84264.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9649
New submission from Mike Dirolf m...@dirolf.com:
The json module docs state that sort_keys defaults to True. From the source it
looks like it actually defaults to False. Patch attached.
--
assignee: d...@python
components: Documentation
files: sort_keys_json.patch
keywords: patch
Terry J. Reedy tjre...@udel.edu added the comment:
In 3.1, and I presume (please check) 2.7, the signature is given as
class json.JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True,
allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
I verified by