Skip to content
Opensource internals
  • Posts

Int

CPython's int Implementation in C

Oct 20, 2026 8 min read Jay Hubbert

int is a PyObject with a tag word packing sign and digit count plus a little-endian array of 30-bit digits — and every value in -5..1024 is an immortal singleton.

PythonCpythonInternalsInt

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·