mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
This commit is contained in:
commit
7db768cf0e
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue