How is Python's List Implemented?

后端 未结 9 941
野趣味
野趣味 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:25

    According to the documentation,

    Python’s lists are really variable-length arrays, not Lisp-style linked lists.

提交回复
热议问题