Commit dbc5987e authored by Georg Brandl's avatar Georg Brandl

Add missing ABCs to list.

parent 1a664419
...@@ -46,42 +46,50 @@ ABCs - abstract base classes ...@@ -46,42 +46,50 @@ ABCs - abstract base classes
The collections module offers the following ABCs: The collections module offers the following ABCs:
========================= ==================== ====================== ==================================================== ========================= ===================== ====================== ====================================================
ABC Inherits Abstract Methods Mixin Methods ABC Inherits Abstract Methods Mixin Methods
========================= ==================== ====================== ==================================================== ========================= ===================== ====================== ====================================================
:class:`Container` ``__contains__`` :class:`Container` ``__contains__``
:class:`Hashable` ``__hash__`` :class:`Hashable` ``__hash__``
:class:`Iterable` ``__iter__`` :class:`Iterable` ``__iter__``
:class:`Iterator` :class:`Iterable` ``__next__`` ``__iter__`` :class:`Iterator` :class:`Iterable` ``__next__`` ``__iter__``
:class:`Sized` ``__len__`` :class:`Sized` ``__len__``
:class:`Callable` ``__call__``
:class:`Mapping` :class:`Sized`, ``__getitem__``, ``__contains__``, ``keys``, ``items``, ``values``,
:class:`Iterable`, ``__len__``. and ``get``, ``__eq__``, and ``__ne__`` :class:`Sequence` :class:`Sized`, ``__getitem__`` ``__contains__``. ``__iter__``, ``__reversed__``.
:class:`Container` ``__iter__`` :class:`Iterable`, and ``__len__`` ``index``, and ``count``
:class:`Container`
:class:`MutableMapping` :class:`Mapping` ``__getitem__`` Inherited Mapping methods and
``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``, :class:`MutableSequnce` :class:`Sequence` ``__getitem__`` Inherited Sequence methods and
``__delitem__``, and ``setdefault`` ``__delitem__``, ``append``, ``reverse``, ``extend``, ``pop``,
``__iter__``, and ``insert``, ``remove``, and ``__iadd__``
``__len__`` and ``__len__``
:class:`Sequence` :class:`Sized`, ``__getitem__`` ``__contains__``. ``__iter__``, ``__reversed__``. :class:`Set` :class:`Sized`, ``__len__``, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``,
:class:`Iterable`, and ``__len__`` ``index``, and ``count`` :class:`Iterable`, ``__iter__``, and ``__gt__``, ``__ge__``, ``__and__``, ``__or__``
:class:`Container` :class:`Container` ``__contains__`` ``__sub__``, ``__xor__``, and ``isdisjoint``
:class:`MutableSequnce` :class:`Sequence` ``__getitem__`` Inherited Sequence methods and :class:`MutableSet` :class:`Set` ``add`` and Inherited Set methods and
``__delitem__``, ``append``, ``reverse``, ``extend``, ``pop``, ``discard`` ``clear``, ``pop``, ``remove``, ``__ior__``,
``insert``, ``remove``, and ``__iadd__`` ``__iand__``, ``__ixor__``, and ``__isub__``
and ``__len__``
:class:`Mapping` :class:`Sized`, ``__getitem__``, ``__contains__``, ``keys``, ``items``, ``values``,
:class:`Set` :class:`Sized`, ``__len__``, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``, :class:`Iterable`, ``__len__``. and ``get``, ``__eq__``, and ``__ne__``
:class:`Iterable`, ``__iter__``, and ``__gt__``, ``__ge__``, ``__and__``, ``__or__`` :class:`Container` ``__iter__``
:class:`Container` ``__contains__`` ``__sub__``, ``__xor__``, and ``isdisjoint``
:class:`MutableMapping` :class:`Mapping` ``__getitem__`` Inherited Mapping methods and
:class:`MutableSet` :class:`Set` ``add`` and Inherited Set methods and ``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``,
``discard`` ``clear``, ``pop``, ``remove``, ``__ior__``, ``__delitem__``, and ``setdefault``
``__iand__``, ``__ixor__``, and ``__isub__`` ``__iter__``, and
========================= ==================== ====================== ==================================================== ``__len__``
:class:`MappingView` :class:`Sized` ``__len__``
:class:`KeysView` :class:`MappingView`, ``__contains__``,
:class:`Set` ``__iter__``
:class:`ItemsView` :class:`MappingView`, ``__contains__``,
:class:`Set` ``__iter__``
:class:`ValuesView` :class:`MappingView` ``__contains__``, ``__iter__``
========================= ===================== ====================== ====================================================
These ABCs allow us to ask classes or instances if they provide These ABCs allow us to ask classes or instances if they provide
particular functionality, for example:: particular functionality, for example::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment