diff options
author | Petr Viktorin <encukou@gmail.com> | 2025-04-29 12:56:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-29 12:56:20 +0200 |
commit | 0c26dbd16e9dd71a52d3ebd43d692f0cd88a3a37 (patch) | |
tree | 990d870ed9649f0fab502bf12247dea15234b610 /Python/pystate.c | |
parent | 208d06fd515119af49f844c7781e1eb2be8a8add (diff) | |
download | cpython-0c26dbd16e9dd71a52d3ebd43d692f0cd88a3a37.tar.gz cpython-0c26dbd16e9dd71a52d3ebd43d692f0cd88a3a37.zip |
gh-133079: Remove Py_C_RECURSION_LIMIT & PyThreadState.c_recursion_remaining (GH-133080)
Both were added in 3.13, are undocumented, and don't make sense in 3.14 due to
changes in the stack overflow detection machinery (gh-112282).
PEP 387 exception for skipping a deprecation period: https://github.com/python/steering-council/issues/288
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index ec19e3ae6a4..8c0bab3f2b4 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1559,7 +1559,6 @@ init_threadstate(_PyThreadStateImpl *_tstate, tstate->py_recursion_limit = interp->ceval.recursion_limit; tstate->py_recursion_remaining = interp->ceval.recursion_limit; - tstate->c_recursion_remaining = 2; tstate->exc_info = &tstate->exc_state; // PyGILState_Release must not try to delete this thread state. |