[Python-checkins] cpython (2.7): Document when json.load's parse_constant behaviour changed
hynek.schlawack
python-checkins at python.org
Sun May 20 12:09:12 CEST 2012
http://hg.python.org/cpython/rev/aad7cf67b9ea
changeset: 77081:aad7cf67b9ea
branch: 2.7
parent: 77077:bd42068caf00
user: Hynek Schlawack <hs at ox.cx>
date: Sun May 20 11:50:41 2012 +0200
summary:
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
files:
Doc/library/json.rst | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -221,6 +221,9 @@
This can be used to raise an exception if invalid JSON numbers
are encountered.
+ .. versionchanged:: 2.7
+ *parse_constant* doesn't get called on 'null', 'true', 'false' anymore.
+
To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``
kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments
will be passed to the constructor of the class.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list