Skip to content
Opensource internals
  • Posts

Tuple

CPython's tuple Implementation in C: Immutable, Inline, and Recycled

Oct 20, 2026 8 min read Jay Hubbert

A CPython tuple has no separate buffer — the item array is embedded in the object, so its memory footprint is exactly its length and nothing more.

PythonCpythonInternalsTuple

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·