Skip to content
Opensource internals
  • Posts

List

CPython's list Implementation in C

Oct 20, 2026 7 min read Jay Hubbert

CPython’s list is a contiguous array of pointers with a separate size and capacity, growing by about an eighth each time so appends stay O(1) amortized.

PythonCpythonInternalsList

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·