[issue23480] Minor typo
Zorigt Bazarragchaa
report at bugs.python.org
Wed Feb 18 23:23:57 CET 2015
New submission from Zorigt Bazarragchaa:
I found a syntax type in your demo example on https://docs.python.org/2/library/json.html
>>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)
{"a": 0, "b": 0, "c": 0}
The correct return should be a 'str' type not json. Therefore:
>>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)
'{"a": 0, "b": 0, "c": 0}'
----------
components: Demos and Tools
messages: 236195
nosy: zorigt
priority: normal
severity: normal
status: open
title: Minor typo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23480>
_______________________________________
More information about the Python-bugs-list
mailing list