summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-07 10:20:10 (GMT)
committerGitHub <noreply@github.com>2021-12-07 10:20:10 (GMT)
commit15da2a2723245710f1bd2c7cbd5b450532ae7728 (patch)
treef5fb1dd2eb7be6a030bb399a186b97475d51eeeb /Doc/library
parentbf1812ef61fe95ae96fbcebd6e384afde57f2790 (diff)
downloadcpython-15da2a2723245710f1bd2c7cbd5b450532ae7728.zip
cpython-15da2a2723245710f1bd2c7cbd5b450532ae7728.tar.gz
cpython-15da2a2723245710f1bd2c7cbd5b450532ae7728.tar.bz2
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)
(cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671) Co-authored-by: James Gerity <snoopjedi@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/json.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 6fa89f5..1810e04 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -159,7 +159,7 @@ Basic Usage
If *check_circular* is false (default: ``True``), then the circular
reference check for container types will be skipped and a circular reference
- will result in an :exc:`OverflowError` (or worse).
+ will result in an :exc:`RecursionError` (or worse).
If *allow_nan* is false (default: ``True``), then it will be a
:exc:`ValueError` to serialize out of range :class:`float` values (``nan``,
@@ -432,7 +432,7 @@ Encoders and Decoders
If *check_circular* is true (the default), then lists, dicts, and custom
encoded objects will be checked for circular references during encoding to
- prevent an infinite recursion (which would cause an :exc:`OverflowError`).
+ prevent an infinite recursion (which would cause an :exc:`RecursionError`).
Otherwise, no such check takes place.
If *allow_nan* is true (the default), then ``NaN``, ``Infinity``, and