mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)
(cherry picked from commit 8db06528ca
)
Co-authored-by: James Gerity <snoopjedi@gmail.com>
This commit is contained in:
parent
f147248795
commit
2e360832d7
3 changed files with 5 additions and 5 deletions
|
@ -116,7 +116,7 @@ class JSONEncoder(object):
|
|||
|
||||
If check_circular is true, then lists, dicts, and custom encoded
|
||||
objects will be checked for circular references during encoding to
|
||||
prevent an infinite recursion (which would cause an OverflowError).
|
||||
prevent an infinite recursion (which would cause an RecursionError).
|
||||
Otherwise, no such check takes place.
|
||||
|
||||
If allow_nan is true, then NaN, Infinity, and -Infinity will be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue