]> granicus.if.org Git - python/commitdiff
#14692 Fix json docs to reflect changes in json.load
authorHynek Schlawack <hs@ox.cx>
Wed, 16 May 2012 17:01:04 +0000 (19:01 +0200)
committerHynek Schlawack <hs@ox.cx>
Wed, 16 May 2012 17:01:04 +0000 (19:01 +0200)
The behaviour of the parse_constant callback changed insofar that 'null',
'true', 'false' don't trigger its call anymore.

Patch by Serhiy Storchaka

Doc/library/json.rst

index c2ad6e9a837e91f40f0d62c251dc082d0da0d7d1..cbcac8deb7a433f636ee502c22bcc238753f6346 100644 (file)
@@ -209,8 +209,8 @@ Basic Usage
    (e.g. :class:`float`).
 
    *parse_constant*, if specified, will be called with one of the following
-   strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``, ``'null'``, ``'true'``,
-   ``'false'``.  This can be used to raise an exception if invalid JSON numbers
+   strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``.
+   This can be used to raise an exception if invalid JSON numbers
    are encountered.
 
    To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``