mirror of
https://github.com/python/cpython.git
synced 2025-10-28 17:13:08 +00:00
gh-106905: Use separate structs to track recursion depth in each PyAST_mod2obj call. (GH-113035)
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
This commit is contained in:
parent
3f5eb3e6c7
commit
48c49739f5
4 changed files with 412 additions and 339 deletions
2
Include/internal/pycore_ast_state.h
generated
2
Include/internal/pycore_ast_state.h
generated
|
|
@ -16,8 +16,6 @@ extern "C" {
|
|||
struct ast_state {
|
||||
_PyOnceFlag once;
|
||||
int finalized;
|
||||
int recursion_depth;
|
||||
int recursion_limit;
|
||||
PyObject *AST_type;
|
||||
PyObject *Add_singleton;
|
||||
PyObject *Add_type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue