mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
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
This commit is contained in:
parent
208d06fd51
commit
0c26dbd16e
5 changed files with 12 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue