How is Python's List Implemented?

后端 未结 9 924
野趣味
野趣味 2020-11-22 08:00

Is it a linked list, an array? I searched around and only found people guessing. My C knowledge isn\'t good enough to look at the source code.

9条回答
  •  清歌不尽
    2020-11-22 08:26

    In CPython, lists are arrays of pointers. Other implementations of Python may choose to store them in different ways.

提交回复
热议问题