@@ -683,12 +683,12 @@ recursion depth automatically).
683683 sets a :exc: `MemoryError ` and returns a nonzero value.
684684
685685 The function then checks if the recursion limit is reached. If this is the
686- case, a :exc: `RuntimeError ` is set and a nonzero value is returned.
686+ case, a :exc: `RecursionError ` is set and a nonzero value is returned.
687687 Otherwise, zero is returned.
688688
689689 *where * should be a string such as ``" in instance check" `` to be
690- concatenated to the :exc: `RuntimeError ` message caused by the recursion depth
691- limit.
690+ concatenated to the :exc: `RecursionError ` message caused by the recursion
691+ depth limit.
692692
693693.. c :function :: void Py_LeaveRecursiveCall ()
694694
@@ -800,6 +800,8 @@ the variables:
800800+-----------------------------------------+---------------------------------+----------+
801801| :c:data: `PyExc_ProcessLookupError ` | :exc: `ProcessLookupError ` | |
802802+-----------------------------------------+---------------------------------+----------+
803+ | :c:data: `PyExc_RecursionError ` | :exc: `RecursionError ` | |
804+ +-----------------------------------------+---------------------------------+----------+
803805| :c:data: `PyExc_ReferenceError ` | :exc: `ReferenceError ` | \( 2) |
804806+-----------------------------------------+---------------------------------+----------+
805807| :c:data: `PyExc_RuntimeError ` | :exc: `RuntimeError ` | |
@@ -829,6 +831,9 @@ the variables:
829831 :c:data: `PyExc_PermissionError `, :c:data: `PyExc_ProcessLookupError `
830832 and :c:data: `PyExc_TimeoutError ` were introduced following :pep: `3151 `.
831833
834+ .. versionadded :: 3.5
835+ :c:data: `PyExc_RecursionError `.
836+
832837
833838These are compatibility aliases to :c:data: `PyExc_OSError `:
834839
@@ -877,6 +882,7 @@ These are compatibility aliases to :c:data:`PyExc_OSError`:
877882 single: PyExc_OverflowError
878883 single: PyExc_PermissionError
879884 single: PyExc_ProcessLookupError
885+ single: PyExc_RecursionError
880886 single: PyExc_ReferenceError
881887 single: PyExc_RuntimeError
882888 single: PyExc_SyntaxError
0 commit comments