Curated source guide
Explore Python CPython interpreter source code. Learn how Python works under the hood, from bytecode execution to garbage collection and runtime internals.
View upstream repositoryDoc/c-api/ — Python C API referenceDoc/extending/ — Extending Python with CDoc/ — GIL and core term definitionsPython/ — Main evaluation loop — the heart of CPythonInclude/ — PyObject struct — foundation of all Python objectsObjects/ — Type construction, slots, and method resolutionLoading source workspace
CPython source explorer
Explore Python CPython interpreter source code. Learn how Python works under the hood, from bytecode execution to garbage collection and runtime internals.