Python Deep Dive
How CPython actually runs your code. Every article is written against a pinned interpreter tag and says outright which behaviour is a language guarantee and which is an implementation detail.
Sections
- Concurrency2 articles
- Data structures1 article
- Memory1 article
- Runtime1 article
Articles
- The event loop: one thread, one queue, and six steps on repeatAdvanced25 MIN
- GIL: not “Python can't do threads,” but “a thread waits exactly as long as you asked”Expert30 MIN
- Python dictionaries from the inside: the CPython hash tableInternals40 MIN
- Memory management in CPython: three numbers everyone repeats wrongExpert35 MIN
- From source to bytecode: the six steps Python takes before the first instructionAdvanced20 MIN