diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-20 09:50:41 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-20 09:50:41 (GMT) |
commit | 897b278cf07cfc813522b6f26b6efc4513d0cf2b (patch) | |
tree | 5ae72d958e48736545427dcd913a0f3b53cc1b2e /Doc | |
parent | 9237bb638f5204b798e884465310293858f71816 (diff) | |
download | cpython-897b278cf07cfc813522b6f26b6efc4513d0cf2b.zip cpython-897b278cf07cfc813522b6f26b6efc4513d0cf2b.tar.gz cpython-897b278cf07cfc813522b6f26b6efc4513d0cf2b.tar.bz2 |
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/json.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 218bf9b..c2242d5 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -221,6 +221,9 @@ Basic Usage This can be used to raise an exception if invalid JSON numbers are encountered. + .. versionchanged:: 2.7 + *parse_constant* doesn't get called on 'null', 'true', 'false' anymore. + To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls`` kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments will be passed to the constructor of the class. |