]> granicus.if.org Git - python/commitdiff
Document when json.load's parse_constant behaviour changed
authorHynek Schlawack <hs@ox.cx>
Sun, 20 May 2012 10:03:17 +0000 (12:03 +0200)
committerHynek Schlawack <hs@ox.cx>
Sun, 20 May 2012 10:03:17 +0000 (12:03 +0200)
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.

Doc/library/json.rst

index cbcac8deb7a433f636ee502c22bcc238753f6346..b20709f0736c18e265e13849d4ad619bcec815f2 100644 (file)
@@ -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.