[ACCEPTED]-How does Python store lists internally?-data-structures
Accepted answer
from Core Python Containers: Under the Hood
List Implementation:
Fixed-length 4 array of pointers
* When the array grows 3 or shrinks, calls realloc() and, if necessary, copies 2 all of the items to the new space
source 1 code: Include/listobject.h and Objects/listobject.c
btw: here is the video
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.