What CPython is, building from source, the repository layout, reading C code, the runtime model, and the path from source code to execution.
| Chapter | Title |
|---|---|
| 1 | What CPython Is |
| 2 | Building CPython From Source |
| 3 | Repository Layout |
| 4 | Reading CPython C Code |
| 5 | The Runtime Model |
| 6 | From Source Code to Execution |
1. What CPython IsWhat CPython is, how it differs from other Python implementations, and why its internals are worth studying.
2. Building CPython From SourceCloning the repository, installing dependencies, running ./configure, and compiling CPython from source.
3. Repository LayoutTour of the CPython source tree: Modules/, Objects/, Python/, Parser/, Include/, and the build system.
4. Reading CPython C CodeConventions, macros, naming patterns, and header layout used throughout the CPython C codebase.
5. The Runtime ModelThe interpreter state, thread state, frame stack, and the runtime lifecycle from Py_Initialize to Py_Finalize.
6. From Source Code to ExecutionEnd-to-end journey of a .py file through lexing, parsing, compilation, and bytecode evaluation.