[Python-checkins] cpython (2.7): #14692 Fix json docs to reflect changes in json.load

hynek.schlawack python-checkins at python.org
Wed May 16 19:10:35 CEST 2012


http://hg.python.org/cpython/rev/30d16d1e5175
changeset:   77000:30d16d1e5175
branch:      2.7
parent:      76994:e957b93571a8
user:        Hynek Schlawack <hs at ox.cx>
date:        Wed May 16 18:02:54 2012 +0200
summary:
  #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

files:
  Doc/library/json.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/json.rst b/Doc/library/json.rst
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -217,8 +217,8 @@
    (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``

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list