Skip to content

Commit 7db768c

Browse files
committed
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
2 parents 6c7bf42 + 1203e83 commit 7db768c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/json.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ Basic Usage
213213
This can be used to raise an exception if invalid JSON numbers
214214
are encountered.
215215

216+
.. versionchanged:: 2.7
217+
*parse_constant* doesn't get called on 'null', 'true', 'false' anymore.
218+
216219
To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls``
217220
kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments
218221
will be passed to the constructor of the class.

0 commit comments

Comments
 (0)