CPython Internals: IR Generation
As mentioned in the previous post, there are multiple entrypoints to execute CPython. While these methods might have different strategy for converting the source code to the AST, they share the same entrypoint _PyAST_Compile
defined in Python/compile.c
to generate the control flow graph (CFG) and the bytecodes.