Python's Generational GC: The Cycle Breaker

While Python primarily uses reference counting, it employs a separate generational garbage collector to periodically detect and collect unreachable objects involved in circular references, preventing memory leaks that reference counting alone cannot resolve.

Sources

Open the full topic