summaryrefslogtreecommitdiffstats
path: root/Lib/json/__init__.py
diff options
context:
space:
mode:
authorJames Gerity <snoopjedi@gmail.com>2021-12-07 09:58:40 (GMT)
committerGitHub <noreply@github.com>2021-12-07 09:58:40 (GMT)
commit8db06528cacc94e67eb1fb2e4c2acc061a515671 (patch)
treeb436528ef22442e8711060c3de3a2901de81b231 /Lib/json/__init__.py
parentddbab69b6d44085564a9b5022b96b002a52b2f2b (diff)
downloadcpython-8db06528cacc94e67eb1fb2e4c2acc061a515671.zip
cpython-8db06528cacc94e67eb1fb2e4c2acc061a515671.tar.gz
cpython-8db06528cacc94e67eb1fb2e4c2acc061a515671.tar.bz2
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)
Diffstat (limited to 'Lib/json/__init__.py')
-rw-r--r--Lib/json/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py
index 2c52bde..e4c21da 100644
--- a/Lib/json/__init__.py
+++ b/Lib/json/__init__.py
@@ -133,7 +133,7 @@ def dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True,
If ``check_circular`` is false, then the circular reference check
for container types will be skipped and a circular reference will
- result in an ``OverflowError`` (or worse).
+ result in an ``RecursionError`` (or worse).
If ``allow_nan`` is false, then it will be a ``ValueError`` to
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``)
@@ -195,7 +195,7 @@ def dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True,
If ``check_circular`` is false, then the circular reference check
for container types will be skipped and a circular reference will
- result in an ``OverflowError`` (or worse).
+ result in an ``RecursionError`` (or worse).
If ``allow_nan`` is false, then it will be a ``ValueError`` to
serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``) in