Skip to content
Opensource internals
  • Posts

Garbage collection

How CPython's Garbage Collector Works

Oct 16, 2026 7 min read Jay Hubbert

CPython manages memory with two cooperating mechanisms: reference counting for the common case, and a cyclic garbage collector for the cases reference counting cannot handle. This …

PythonCpythonInternalsGarbage collection

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·