summaryrefslogtreecommitdiffstats
path: root/Doc/library/json.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-12 20:47:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-12 20:47:16 (GMT)
commit58b6b985a0612e52da7a975c7791f89e98c8fd0b (patch)
treec9828c7b32573904604f6fdec8cacb09b47d3a75 /Doc/library/json.rst
parentfed0883e948f4dc83c27fee5bc730f34d96098be (diff)
downloadcpython-58b6b985a0612e52da7a975c7791f89e98c8fd0b.zip
cpython-58b6b985a0612e52da7a975c7791f89e98c8fd0b.tar.gz
cpython-58b6b985a0612e52da7a975c7791f89e98c8fd0b.tar.bz2
Fixed the documentation of parse_constant argument in json.load().
parse_constant doesn't get called on 'null', 'true', 'false' since 3.1/2.7.
Diffstat (limited to 'Doc/library/json.rst')
-rw-r--r--Doc/library/json.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 9e3e05e..70defa2 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -344,8 +344,8 @@ Encoders and Decoders
(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.
If *strict* is false (``True`` is the default), then control characters