Factor out the interpreter (PyEval_EvalFrameDefault) and helper functions into separate files
Offen
@markshannon arbeitet bereits daran.
Seit 05.6.2026.
interpreter-core
type-refactor
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.