cpython icon indicating copy to clipboard operation
cpython copied to clipboard

Move a few bits from compiler to earlier stages to simplify the compiler

Open iritkatriel opened this issue 1 year ago • 0 comments

There are validations in compile.c that can move to earlier stages (AST validation or symtable construction).

And the compiler is modifying the symbol table (setting ste_coroutine), which it really shouldn't be doing.

This will simplify the compiler, which is one of the largest code components of the interpreter.

Linked PRs

  • gh-121273
  • gh-121297
  • gh-121361

iritkatriel avatar Jul 02 '24 15:07 iritkatriel