8 ms·
No, lists are implemented in CPython as an regular, contiguous array of PyObject. There is an array library (https://docs.python.org/3/library/array.html https:
by lights0123 4y ago
No, lists are implemented in CPython as an regular, contiguous array of PyObject. There is an array library (https://docs.python.org/3/library/array.html https://docs.python.org/3/library/array.html) for more efficient storage, comparable to JS's Uint8Array and friends.