Search notes:

CPython: Python/pythonrun.c

*Top level execution of Python code (including in __main__)
To help control the interfaces between the startup, execution and shutdown code, the phases are split across separate modules (bootstrap, pythonrun, shutdown).

Index