ID EN
Sys

getrecursionlimit

Python 3.11

Return the current value of the recursion limit, the maximum depth of the Python interpreter stack. This limit prevents infinite recursion from causing an overflow of the C stack and crashing Python. It can be set by setrecursionlimit().

Syntax

PYTHON
sys.getrecursionlimit()

See Also

setrecursionlimit()