01
Callable objects and function-like behavior
Use the call protocol to combine behavior with explicit state without pretending every callable is a function.
Independent field notes / Vol. 01
Precise explanations of the machinery, patterns, and tradeoffs that make Python feel deceptively simple.
Read the cover storyThe index
2 notes, edited for signal.
Use the call protocol to combine behavior with explicit state without pretending every callable is a function.
Understand late binding, shared nonlocal state, loop callbacks, and the CPython cells underneath lexical closures.
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.