|
|
|
|
|
by detaro
2192 days ago
|
|
List is pretty much an interface, and Python lists do support things you expect from a List type, but not from an Array (e.g. inserting/removing things at random positions). The interface doesn't say if it's an array, a linked list, a rope, ... underneath, and you don't need to care at this point. |
|
Also notably a Python list does NOT have an efficent pop operation at both ends, only on the far end.
Doc: https://docs.python.org/3/library/stdtypes.html#list