A blog post on choosing more specific types rather than general ones like list and dict.

  • o11c@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    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)