From: Hynek Schlawack Date: Sun, 20 May 2012 10:03:17 +0000 (+0200) Subject: Document when json.load's parse_constant behaviour changed X-Git-Tag: v3.3.0a4~109^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1203e83d288588c472d738f65a17df4084ababee;p=python 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 cbcac8deb7..b20709f073 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -213,6 +213,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.