Make _PyASTOptimizeState internal to ast_opt.c #105148
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-feature
A feature request or enhancement
ast_opt.c imports pycore_compile.c inly for
_PyASTOptimizeState
, which could be defined in ast_opt.c instead.We need to change the signature of
_PyAST_Optimize
to take two integers (optimization level and flags) instead of a_PyASTOptimizeState
pointer. This will slightly simplify the call sites of_PyAST_Optimize
, where this struct is created just to hold those two ints and pass it to_PyAST_Optimize
.Linked PRs
The text was updated successfully, but these errors were encountered: