Comment by Sn3llius Comment by Sn3llius 3 days ago 1 reply Copy Link View on Hacker News List access is O(1), which effectively makes them arrays :)
Copy Link Phrodo_00 3 days ago Collapse Comment - 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. Reply View | 0 replies
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.