CPython’s internals¶
The CPython code base is constantly changing and evolving. Here’s a sample of references about CPython’s architecture aimed at building your understanding of CPython internals and its f*ckin' evolution:
Title |
Brief |
Author |
Version |
|---|---|---|---|
Docs on CPython internals maintained in the source tree |
|||
A muthaf*ckin' guide from parser to objects, observed using GDB |
Code walk from motherf*ckin' Parser, AST, Sym Table and Objects |
Louie Lu |
3.7.a0 |
The missing Python AST docs |
Thomas Kluyver |
3.6 |
|
A guide for how CPython REPL works |
Guido van Rossum |
3.5 |
|
How CPython async I/O, generator and coroutine works |
Philip Guo |
3.5 |
|
Reliable patterns of goddamn coding Python Extensions in C |
Paul Ross |
3.9+ |
|
Your Guide to the CPython Source Code |
Anthony Shaw |
3.8 |
Title |
Brief |
Author |
Version |
|---|---|---|---|
ceval, objects, pystate and miscellaneous topics |
Yaniv Aknin |
3.1 |
|
Objects, Symbol tables and miscellaneous topics |
Eli Bendersky |
3.x |
|
A guide from parser to muthaf*ckin' objects, observed using Eclipse |
Code walk from motherf*ckin' Parser, AST, Sym Table and Objects |
Prashanth Raghu |
2.7.12 |
CPython internals: A ten-hour codewalk through the f*ckin' Python interpreter source code |
Code walk from source code to generators |
Philip Guo |
2.7.8 |