@@ -46,42 +46,50 @@ ABCs - abstract base classes
4646
4747The collections module offers the following ABCs:
4848
49- ========================= ==================== ====================== ====================================================
50- ABC Inherits Abstract Methods Mixin Methods
51- ========================= ==================== ====================== ====================================================
52- :class: `Container ` ``__contains__ ``
53- :class: `Hashable ` ``__hash__ ``
54- :class: `Iterable ` ``__iter__ ``
55- :class: `Iterator ` :class: `Iterable ` ``__next__ `` ``__iter__ ``
56- :class: `Sized ` ``__len__ ``
57-
58- :class:`Mapping` :class:`Sized`, ``__getitem__``, ``__contains__``, ``keys``, ``items``, ``values``,
59- :class: `Iterable `, ``__len__ ``. and ``get ``, ``__eq__ ``, and ``__ne__ ``
60- :class: `Container ` ``__iter__ ``
61-
62- :class:`MutableMapping` :class:`Mapping` ``__getitem__`` Inherited Mapping methods and
63- ``__setitem__ ``, ``pop ``, ``popitem ``, ``clear ``, ``update ``,
64- ``__delitem__ ``, and ``setdefault ``
65- ``__iter__ ``, and
66- ``__len__ ``
67-
68- :class:`Sequence` :class:`Sized`, ``__getitem__`` ``__contains__``. ``__iter__``, ``__reversed__``.
69- :class: `Iterable `, and ``__len__ `` ``index ``, and ``count ``
70- :class: `Container `
71-
72- :class:`MutableSequnce` :class:`Sequence` ``__getitem__`` Inherited Sequence methods and
73- ``__delitem__ ``, ``append ``, ``reverse ``, ``extend ``, ``pop ``,
74- ``insert ``, ``remove ``, and ``__iadd__ ``
75- and ``__len__ ``
76-
77- :class:`Set` :class:`Sized`, ``__len__``, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``,
78- :class: `Iterable `, ``__iter__ ``, and ``__gt__ ``, ``__ge__ ``, ``__and__ ``, ``__or__ ``
79- :class: `Container ` ``__contains__ `` ``__sub__ ``, ``__xor__ ``, and ``isdisjoint ``
80-
81- :class:`MutableSet` :class:`Set` ``add`` and Inherited Set methods and
82- ``discard `` ``clear ``, ``pop ``, ``remove ``, ``__ior__ ``,
83- ``__iand__ ``, ``__ixor__ ``, and ``__isub__ ``
84- ========================= ==================== ====================== ====================================================
49+ ========================= ===================== ====================== ====================================================
50+ ABC Inherits Abstract Methods Mixin Methods
51+ ========================= ===================== ====================== ====================================================
52+ :class: `Container ` ``__contains__ ``
53+ :class: `Hashable ` ``__hash__ ``
54+ :class: `Iterable ` ``__iter__ ``
55+ :class: `Iterator ` :class: `Iterable ` ``__next__ `` ``__iter__ ``
56+ :class: `Sized ` ``__len__ ``
57+ :class: `Callable ` ``__call__ ``
58+
59+ :class:`Sequence` :class:`Sized`, ``__getitem__`` ``__contains__``. ``__iter__``, ``__reversed__``.
60+ :class: `Iterable `, and ``__len__ `` ``index ``, and ``count ``
61+ :class: `Container `
62+
63+ :class:`MutableSequnce` :class:`Sequence` ``__getitem__`` Inherited Sequence methods and
64+ ``__delitem__ ``, ``append ``, ``reverse ``, ``extend ``, ``pop ``,
65+ ``insert ``, ``remove ``, and ``__iadd__ ``
66+ and ``__len__ ``
67+
68+ :class:`Set` :class:`Sized`, ``__len__``, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``,
69+ :class: `Iterable `, ``__iter__ ``, and ``__gt__ ``, ``__ge__ ``, ``__and__ ``, ``__or__ ``
70+ :class: `Container ` ``__contains__ `` ``__sub__ ``, ``__xor__ ``, and ``isdisjoint ``
71+
72+ :class:`MutableSet` :class:`Set` ``add`` and Inherited Set methods and
73+ ``discard `` ``clear ``, ``pop ``, ``remove ``, ``__ior__ ``,
74+ ``__iand__ ``, ``__ixor__ ``, and ``__isub__ ``
75+
76+ :class:`Mapping` :class:`Sized`, ``__getitem__``, ``__contains__``, ``keys``, ``items``, ``values``,
77+ :class: `Iterable `, ``__len__ ``. and ``get ``, ``__eq__ ``, and ``__ne__ ``
78+ :class: `Container ` ``__iter__ ``
79+
80+ :class:`MutableMapping` :class:`Mapping` ``__getitem__`` Inherited Mapping methods and
81+ ``__setitem__ ``, ``pop ``, ``popitem ``, ``clear ``, ``update ``,
82+ ``__delitem__ ``, and ``setdefault ``
83+ ``__iter__ ``, and
84+ ``__len__ ``
85+
86+ :class:`MappingView` :class:`Sized` ``__len__``
87+ :class: `KeysView ` :class: `MappingView `, ``__contains__ ``,
88+ :class: `Set ` ``__iter__ ``
89+ :class: `ItemsView ` :class: `MappingView `, ``__contains__ ``,
90+ :class: `Set ` ``__iter__ ``
91+ :class: `ValuesView ` :class: `MappingView ` ``__contains__ ``, ``__iter__ ``
92+ ========================= ===================== ====================== ====================================================
8593
8694These ABCs allow us to ask classes or instances if they provide
8795particular functionality, for example::
0 commit comments