diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-12 20:47:16 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-12 20:47:16 (GMT) |
commit | 022371ff945a4d0012cdcdc209031a132e43a5c9 (patch) | |
tree | a62423443f6e963d2f3346c835dec2586763cf27 /Doc | |
parent | 6b4b6e956eaaff272fa4ffe0221a9cc8ef07882f (diff) | |
download | cpython-022371ff945a4d0012cdcdc209031a132e43a5c9.zip cpython-022371ff945a4d0012cdcdc209031a132e43a5c9.tar.gz cpython-022371ff945a4d0012cdcdc209031a132e43a5c9.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')
-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 c1a52a7..858a59e 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -332,8 +332,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 |