From: Hynek Schlawack Date: Wed, 16 May 2012 17:01:04 +0000 (+0200) Subject: #14692 Fix json docs to reflect changes in json.load X-Git-Tag: v3.3.0a4~151^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9729fd442730375e88a91896a162afd667283154;p=python #14692 Fix json docs to reflect changes in json.load The behaviour of the parse_constant callback changed insofar that 'null', 'true', 'false' don't trigger its call anymore. Patch by Serhiy Storchaka --- diff --git a/Doc/library/json.rst b/Doc/library/json.rst index c2ad6e9a83..cbcac8deb7 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -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``