@@ -24,9 +24,9 @@ In addition to containers, the collections module provides some ABCs
2424a class provides a particular interface, for example, is it hashable or
2525a mapping. The ABCs provided include those in the following table:
2626
27- ===================================== ========================================
27+ ===================================== ================================================================================
2828ABC Notes
29- ===================================== ========================================
29+ ===================================== ================================================================================
3030:class: `collections.Container ` Defines ``__contains__() ``
3131:class: `collections.Hashable ` Defines ``__hash__() ``
3232:class: `collections.Iterable ` Defines ``__iter__() ``
@@ -45,23 +45,25 @@ ABC Notes
4545:class: `collections.Sequence ` Derived from :class: `Container `,
4646 :class: `Iterable `, and :class: `Sized `,
4747 and in addition defines
48- ``__getitem__()`
48+ ``__getitem__() ``
4949:class: `collections.MutableSequence ` Derived from :class: `Sequence `
50- :class:`collections.Set` Derived from :class:`Container`, :class:`Iterable`, :class:`Sized`.
50+ :class: `collections.Set ` Derived from :class: `Container `,
51+ :class: `Iterable `, and :class: `Sized `,
5152 add in addition defines
52- ``__le__() ``, ``__lt__() ``, ``__eq__() ``,
53- ``__and__() ``, ``__or__() ``, ``__sub__() ``,
53+ ``__le__() ``, ``__lt__() ``,
54+ ``__eq__() ``, ``__and__() ``,
55+ ``__or__() ``, ``__sub__() ``,
5456 ``__xor__() ``, and ``isdisjoint() ``,
5557:class: `collections.MutableSet ` Derived from :class: `Set ` and in
5658 addition defines ``add() ``,
5759 ``clear() ``, ``discard() ``, ``pop() ``,
58- ``remove() ``, ``__ior__() ``, `` __iand__() ``,
59- ``__ixor__ () ``, and `` __isub__ () ``
60-
61- ===================================== ========================================
60+ ``remove() ``, ``__ior__() ``,
61+ ``__iand__ () ``, `` __ixor__ () ``, and
62+ `` __isub__() ``
63+ ===================================== ================================================================================
6264
6365.. XXX Have not included them all and the notes are incomplete
64- .. Deliberately did one row wide to get a neater output
66+ .. long = lines improves the layout
6567
6668 These ABCs allow us to ask classes or instances if they provide
6769particular functionality, for example::
@@ -588,7 +590,7 @@ customize a prototype instance::
588590
589591
590592:class: `UserDict ` objects
591- ----------------------
593+ -------------------------
592594
593595The class, :class: `UserDict ` acts as a wrapper around dictionary objects.
594596The need for this class has been partially supplanted by the ability to
0 commit comments