]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111798: Use lower Py_C_RECURSION_LIMIT in debug mode (#112124)
authorVictor Stinner <vstinner@python.org>
Thu, 16 Nov 2023 13:52:33 +0000 (14:52 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 13:52:33 +0000 (13:52 +0000)
commitbd89bca9e2a57779c251ee6fadf4887acb364824
tree0b2176ea71904f585c968bb82a0743e4fbbf478d
parent81ab0e8a4add53035c87b040afda6d554cace528
gh-111798: Use lower Py_C_RECURSION_LIMIT in debug mode (#112124)

* Run again test_ast_recursion_limit() on WASI platform.
* Add _testinternalcapi.get_c_recursion_remaining().
* Fix test_ast and test_sys_settrace: test_ast_recursion_limit() and
  test_trace_unpack_long_sequence() now adjust the maximum recursion
  depth depending on the the remaining C recursion.
Include/cpython/pystate.h
Lib/test/test_ast.py
Lib/test/test_sys_settrace.py
Misc/NEWS.d/next/Core and Builtins/2023-11-15-20-20-51.gh-issue-111798.cs-3t3.rst [new file with mode: 0644]
Modules/_testinternalcapi.c