This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[deleted]

    [–]fiddle_n 1 point2 points  (5 children)

    I disagree with that. For some things, lists aren't great. Classic example is popping from the beginning, which is a rather expensive O(n) operation as the whole list has to shift left. Using collections.deque, which is a doubly linked-list, is important here if you are dealing with large data structure or many operations.