How does Python store lists internally?

Posted by Mike Cooper on Stack Overflow See other posts from Stack Overflow or by Mike Cooper
Published on 2009-07-07T02:31:01Z Indexed on 2010/05/05 3:48 UTC
Read the original article Hit count: 274

Filed under:
|

How are lists in python stored internally? Is it an array? A linked list? Something else?

Or does the interpreter guess at the right structure for each instance based on length, etc.

If the question is implementation dependent, what about the classic CPython?

© Stack Overflow or respective owner

Related posts about python

Related posts about data-structures