Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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.