Factor out the interpreter (PyEval_EvalFrameDefault) and helper functions into separate files
Aperta
@markshannon ci sta già lavorando.
Dal 5/6/2026.
interpreter-core
type-refactor
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Currently ceval.c contains the interpreter and a lot of helper functions.
We should factor the interpreter into a separate file from everything else, because:
- The interpreter is special. It is more of a template for various different interpreters than a normal function, having it in its own file makes it a lot easier to follow the various macros and
#ifconditions - It means that all helpers must have symbols (not be static) helping any JITs using PEP 523, such as PyTorch and CinderX
- Having the interpreter in its own file makes it easier to build it differently for JIT, free-threading and other custom builds that might need to modify the interpreter, but don't want to have to mess with the rest of the VM
ceval.cis big and breaking it up makes it a bit easier to read the code
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.