Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Sn3llius
· 2y ago · 0 comments
List access is O(1), which effectively makes them arrays :)
Comments
[–]
Phrodo_00
2y ago
Maybe if you don't consider CPU architecture, but most would expect to be able to do loops over Arrays that don't incur in a lot of cache misses, and Python Lists don't do that, since they're actually arrays of pointers to heap memory.