3 ms·
Integers are object pointers, too. CPython just so happens to preallocate a range of small integers[0]. [0]: https://github.com/python/cpython/blob/master/Obje
by hope-striker 7y ago
Integers are object pointers, too. CPython just so happens to preallocate a range of small integers[0].
[0]: https://github.com/python/cpython/blob/master/Objects/longobject.c#L43 https://github.com/python/cpython/blob/master/Objects/longob...