diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-16 17:08:36 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-16 17:08:36 (GMT) |
commit | 07542a0629755d4c425100f93beaaba73af86ebc (patch) | |
tree | 6db77a37d17d94f54d6244a1db64516ecac91c3c /Doc | |
parent | 019ff19c3902633384cace7a1e488a851a67444c (diff) | |
parent | 9729fd442730375e88a91896a162afd667283154 (diff) | |
download | cpython-07542a0629755d4c425100f93beaaba73af86ebc.zip cpython-07542a0629755d4c425100f93beaaba73af86ebc.tar.gz cpython-07542a0629755d4c425100f93beaaba73af86ebc.tar.bz2 |
#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
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/json.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index c2ad6e9..cbcac8d 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`` |