From: Hynek Schlawack Date: Sun, 20 May 2012 09:50:41 +0000 (+0200) Subject: Document when json.load's parse_constant behaviour changed X-Git-Tag: v2.7.4rc1~799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=897b278cf07cfc813522b6f26b6efc4513d0cf2b;p=thirdparty%2FPython%2Fcpython.git Document when json.load's parse_constant behaviour changed It doesn't get called on 'null', 'true', 'false' since f686aced02a3. --- diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 218bf9b83279..c2242d57e3e8 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -221,6 +221,9 @@ Basic Usage 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.