Commit 019935f6 authored by Hynek Schlawack's avatar Hynek Schlawack

#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
parent 38fbd799
...@@ -217,8 +217,8 @@ Basic Usage ...@@ -217,8 +217,8 @@ Basic Usage
(e.g. :class:`float`). (e.g. :class:`float`).
*parse_constant*, if specified, will be called with one of the following *parse_constant*, if specified, will be called with one of the following
strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``, ``'null'``, ``'true'``, strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``.
``'false'``. This can be used to raise an exception if invalid JSON numbers This can be used to raise an exception if invalid JSON numbers
are encountered. are encountered.
To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls`` To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment