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

  • @[email protected]
    link
    fedilink
    51 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)

    • MeadSteveOP
      link
      fedilink
      21 year ago

      Yeah there’s definitely a lot of room for improvement here