A blog post on choosing more specific types rather than general ones like list and dict.
You are viewing a single thread.
View all comments 5 points
The problem is that there’s a severe hole in the ABCs: there is no distinction between “container whose elements are mutable” and “container whose elements and size are mutable”.
(related, there’s no distinction for supporting slice operations or not, e.g. deque
)
2 points