Why Python Has Both Reference Counting and a Garbage Collector
What reference counting already does in Python, what the write-up says is left for the garbage collector and why it calls a comparison with other languages unfair.
For: Learners curious about Python memory management.
Which mechanism does the main work
Funnily enough, this ~12% of time spent is not Python’s primary garbage collection mechanism; reference counting is.[1]
Why a comparison is unfair
Mark noted that direct comparison between other programming language garbage collectors and Python would be “unfair”, because “nobody else does reference-counting and garbage collection”.[1]
Sources
- Garbage Collection: Generational? Incremental? Both! (Python Language Summit 2026) (blog.python.org · checked )
More articles
- LearningWhat the Python Buffer Protocol Is and What Limits Its FormatsWhat the write-up says the Python buffer protocol is, what its fixed format vocabulary limits and the namespace idea proposed for custom data types.
- LearningWhy Rust for CPython, and What It Will Not FixThe reasons the Language Summit 2026 write-up gives for proposing Rust in CPython, what it says Rust does not remove and how the team proposes to reduce the risk.
- LearningWhy One Table Needs Several Models, and the Idea PEP 827 OffersWhat the Language Summit write-up says each CRUD operation needs from a model, and the idea PEP 827 offers for keeping them in step.