Resources

Reference Material

A small, curated set. Canonical documentation first, then the handful of secondary sources that are genuinely worth the time.

The four documents to keep open

If you read nothing else, read these. Everything in the course is an elaboration of them.

Python/C API — Introduction The object model, reference ownership, the error convention. Short, dense, and authoritative. Read it twice.
Extending Python with C or C++ The official tutorial. The fastest way to see the whole shape of a module at once.
Isolating Extension Modules Per-module state, heap types, subinterpreters. The single most valuable how-to for modern extension design, and the one that most third-party code has not caught up with.
C API Extension Support for Free Threading The complete checklist for the GIL-free build. Short enough to read in one sitting.

By lesson

01 · What a Python Object Actually Is

02 · Reference Counting and Ownership

03 · Type Objects and Slots

04 · The Cycle Collector

05 · The Error Model

06 · Functions and Argument Parsing

07 · Frames, Code Objects and the Eval Loop

08 · Module Mechanics

09 · Building and Packaging

10 · The GIL and Thread State

11 · Free-Threaded Python

12 · Buffers and Zero-Copy

13 · Wrapping a C Library

14 · Alternatives and Review

Books and long-form