Skip to content
Opensource internals
  • Posts

Sentinel

CPython's Sentinel Implementation in C: Unique Marker Objects for Defaults

Oct 20, 2026 8 min read Jay Hubbert

Each sentinel() call allocates a distinct, GC-tracked object that infers its module from the calling frame — which is exactly what makes it picklable.

PythonCpythonInternalsSentinel

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·