[Python-checkins] cpython (3.2): Document when json.load's parse_constant behaviour changed
hynek.schlawack
python-checkins at python.org
Sun May 20 12:09:13 CEST 2012
http://hg.python.org/cpython/rev/b2dce31d6aec
changeset: 77082:b2dce31d6aec
branch: 3.2
parent: 77075:f9d31d6977f1
user: Hynek Schlawack <hs at ox.cx>
date: Sun May 20 12:03:17 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
@@ -213,6 +213,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