diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-20 10:04:01 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-20 10:04:01 (GMT) |
commit | 7db768cf0e56520155732def9c320b87cb90fe0f (patch) | |
tree | 4d1c46ee09848165d3e693642b49da0cb4538cc7 | |
parent | 6c7bf42656fccf5c0f09de17e5912e17dce56648 (diff) | |
parent | 1203e83d288588c472d738f65a17df4084ababee (diff) | |
download | cpython-7db768cf0e56520155732def9c320b87cb90fe0f.zip cpython-7db768cf0e56520155732def9c320b87cb90fe0f.tar.gz cpython-7db768cf0e56520155732def9c320b87cb90fe0f.tar.bz2 |
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
-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 cbcac8d..b20709f 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -213,6 +213,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. |