diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-12 20:48:33 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-12 20:48:33 (GMT) |
commit | 58d3e54556a97c92ea8720691f534f71281c9f2c (patch) | |
tree | 5841c52f2b3a93d6f77402b3520e1f1b9e7e459d /Lib/json/__init__.py | |
parent | babe4f8e5ede1f9a6f4206b97c303c8d33346b3b (diff) | |
parent | 022371ff945a4d0012cdcdc209031a132e43a5c9 (diff) | |
download | cpython-58d3e54556a97c92ea8720691f534f71281c9f2c.zip cpython-58d3e54556a97c92ea8720691f534f71281c9f2c.tar.gz cpython-58d3e54556a97c92ea8720691f534f71281c9f2c.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 'Lib/json/__init__.py')
-rw-r--r-- | Lib/json/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index 94397aa..b8d5e6c 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -328,7 +328,7 @@ def loads(s, *, encoding=None, cls=None, object_hook=None, parse_float=None, for JSON integers (e.g. float). ``parse_constant``, if specified, will be called with one of the - following strings: -Infinity, Infinity, NaN, null, true, false. + following strings: -Infinity, Infinity, NaN. This can be used to raise an exception if invalid JSON numbers are encountered. |