#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
This commit is contained in:
Hynek Schlawack 2012-05-16 18:02:54 +02:00
parent 38fbd799d1
commit 019935f615
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,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``