What compile() actually produces
Follow Python source through ASTs and code objects, then watch execution supply the frame and namespaces that compiled code does not contain.
Independent field notes / Vol. 01
Precise explanations of the machinery, patterns, and tradeoffs that make Python feel deceptively simple.
Read the cover storyThe index
49 notes, edited for signal.
Follow Python source through ASTs and code objects, then watch execution supply the frame and namespaces that compiled code does not contain.
Design collection behavior by choosing iteration, membership, sizing, indexing, and mutation deliberately.
Make resource lifetime visible, exception-safe, and reusable with the context management protocol.
Replace the parent-call myth with a precise model of MRO-relative lookup, cooperative methods, and safe multiple inheritance.
Connect Python allocations to pymalloc arenas, pools, blocks, process RSS, tracemalloc domains, and responsible measurement.
Move useful work across Python, native, I/O, and process boundaries without optimizing the wrong crossing.
Match queues, priorities, and sorted searches to the containers that make their dominant work cheap.
Follow exceptions through matching, unwinding, chaining, cleanup, exception groups, and CPython 3.14 exception tables.
Editorial policy
No listicles. No folklore. No just trust me abstractions.
Every note should leave you with a better model of the system, not just another snippet to paste.