From 897b278cf07cfc813522b6f26b6efc4513d0cf2b Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 20 May 2012 11:50:41 +0200 Subject: [PATCH] Document when json.load's parse_constant behaviour changed It doesn't get called on 'null', 'true', 'false' since f686aced02a3. --- Doc/library/json.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 218bf9b8327..c2242d57e3e 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.