Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9729fd4

Browse files
committed
#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
1 parent fb5b954 commit 9729fd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/json.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ Basic Usage
209209
(e.g. :class:`float`).
210210

211211
*parse_constant*, if specified, will be called with one of the following
212-
strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``, ``'null'``, ``'true'``,
213-
``'false'``. This can be used to raise an exception if invalid JSON numbers
212+
strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``.
213+
This can be used to raise an exception if invalid JSON numbers
214214
are encountered.
215215

216216
To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``

0 commit comments

Comments
 (0)