Commit 00cf1212 authored by Hynek Schlawack's avatar Hynek Schlawack

Document when json.load's parse_constant behaviour changed

It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
parent ce25e9eb
...@@ -213,6 +213,9 @@ Basic Usage ...@@ -213,6 +213,9 @@ Basic Usage
This can be used to raise an exception if invalid JSON numbers This can be used to raise an exception if invalid JSON numbers
are encountered. 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`` To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``
kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments
will be passed to the constructor of the class. will be passed to the constructor of the class.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment