From 8db06528cacc94e67eb1fb2e4c2acc061a515671 Mon Sep 17 00:00:00 2001 From: James Gerity Date: Tue, 7 Dec 2021 04:58:40 -0500 Subject: bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943) --- Lib/json/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/json/encoder.py') diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py index c8c78b9c237..21bff2c1a1f 100644 --- a/Lib/json/encoder.py +++ b/Lib/json/encoder.py @@ -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 -- cgit v1.2.3