CPython's int Implementation in C
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.
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.