Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ddba16

Browse files
committed
Update collections ABC table to match the __abstractmethods__ attribute for each container.
1 parent 378170d commit 3ddba16

1 file changed

Lines changed: 27 additions & 21 deletions

File tree

Doc/library/collections.abc.rst

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,35 @@ ABC Inherits from Abstract Methods Mixin
4141
:class:`Sized` ``__len__``
4242
:class:`Callable` ``__call__``
4343

44-
:class:`Sequence` :class:`Sized`, ``__getitem__`` ``__contains__``, ``__iter__``, ``__reversed__``,
45-
:class:`Iterable`, ``index``, and ``count``
44+
:class:`Sequence` :class:`Sized`, ``__getitem__``, ``__contains__``, ``__iter__``, ``__reversed__``,
45+
:class:`Iterable`, ``__len__`` ``index``, and ``count``
4646
:class:`Container`
4747

48-
:class:`MutableSequence` :class:`Sequence` ``__setitem__``, Inherited :class:`Sequence` methods and
49-
``__delitem__``, ``append``, ``reverse``, ``extend``, ``pop``,
50-
``insert`` ``remove``, ``clear``, and ``__iadd__``
51-
52-
:class:`Set` :class:`Sized`, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``,
53-
:class:`Iterable`, ``__gt__``, ``__ge__``, ``__and__``, ``__or__``,
54-
:class:`Container` ``__sub__``, ``__xor__``, and ``isdisjoint``
55-
56-
:class:`MutableSet` :class:`Set` ``add``, Inherited :class:`Set` methods and
57-
``discard`` ``clear``, ``pop``, ``remove``, ``__ior__``,
58-
``__iand__``, ``__ixor__``, and ``__isub__``
59-
60-
:class:`Mapping` :class:`Sized`, ``__getitem__`` ``__contains__``, ``keys``, ``items``, ``values``,
61-
:class:`Iterable`, ``get``, ``__eq__``, and ``__ne__``
62-
:class:`Container`
63-
64-
:class:`MutableMapping` :class:`Mapping` ``__setitem__``, Inherited :class:`Mapping` methods and
65-
``__delitem__`` ``pop``, ``popitem``, ``clear``, ``update``,
66-
and ``setdefault``
48+
:class:`MutableSequence` :class:`Sequence` ``__getitem__``, Inherited :class:`Sequence` methods and
49+
``__setitem__``, ``append``, ``reverse``, ``extend``, ``pop``,
50+
``__delitem__``, ``remove``, and ``__iadd__``
51+
``__len__``,
52+
``insert``
53+
54+
:class:`Set` :class:`Sized`, ``__contains__``, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``,
55+
:class:`Iterable`, ``__iter__``, ``__gt__``, ``__ge__``, ``__and__``, ``__or__``,
56+
:class:`Container` ``__len__`` ``__sub__``, ``__xor__``, and ``isdisjoint``
57+
58+
:class:`MutableSet` :class:`Set` ``__contains__``, Inherited :class:`Set` methods and
59+
``__iter__``, ``clear``, ``pop``, ``remove``, ``__ior__``,
60+
``__len__``, ``__iand__``, ``__ixor__``, and ``__isub__``
61+
``add``,
62+
``discard``
63+
64+
:class:`Mapping` :class:`Sized`, ``__getitem__``, ``__contains__``, ``keys``, ``items``, ``values``,
65+
:class:`Iterable`, ``__iter__``, ``get``, ``__eq__``, and ``__ne__``
66+
:class:`Container` ``__len__``
67+
68+
:class:`MutableMapping` :class:`Mapping` ``__getitem__``, Inherited :class:`Mapping` methods and
69+
``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``,
70+
``__delitem__``, and ``setdefault``
71+
``__iter__``,
72+
``__len__``
6773

6874

6975
:class:`MappingView` :class:`Sized` ``__len__``

0 commit comments

Comments
 (0)