CPython’s internals#
This guide describes the basics of CPython’s internals. It explains the layout of CPython’s source code. It also explains how the parser, compiler, and interpreter work together to run your Python code. Finally, it covers the garbage collector and how it manages memory.
- CPython source code
- Guide to the parser
- Compiler design
- The bytecode interpreter (3.11)
- Garbage collector design