AnyLearn
All cursus
Programmingadvanced

How Python really works: CPython internals

Go under the hood of the interpreter that runs most Python. Start with the object and data model, where every value is a heap object and behavior lives in dunder methods. See how source becomes bytecode and runs on a stack machine with an adaptive interpreter. Learn how reference counting and the cyclic collector reclaim memory. Finish with the GIL and the free-threading build that makes it optional. Come out able to reason about performance, memory, and concurrency from mechanism, not folklore.

0 of 4 lessons complete
Sign in to track progress and earn a certificate.

Lessons, in order

  1. 1
    Programming
    CPython: the object and data model
    Start
  2. 2
    Programming
    CPython: bytecode and the interpreter loop
    Start
  3. 3
    Programming
    CPython: reference counting and the cyclic GC
    Start
  4. 4
    Programming
    CPython: the GIL and free-threading
    Start