Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(26)

Side by Side Diff: Doc/library/collections.abc.rst

Issue 25958: Implicit ABCs have no means of "anti-registration"
Patch Set: Created 3 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Doc/reference/datamodel.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`collections.abc` --- Abstract Base Classes for Containers 1 :mod:`collections.abc` --- Abstract Base Classes for Containers
2 =============================================================== 2 ===============================================================
3 3
4 .. module:: collections.abc 4 .. module:: collections.abc
5 :synopsis: Abstract base classes for containers 5 :synopsis: Abstract base classes for containers
6 6
7 .. moduleauthor:: Raymond Hettinger <python at rcn.com> 7 .. moduleauthor:: Raymond Hettinger <python at rcn.com>
8 .. sectionauthor:: Raymond Hettinger <python at rcn.com> 8 .. sectionauthor:: Raymond Hettinger <python at rcn.com>
9 9
10 .. versionadded:: 3.3 10 .. versionadded:: 3.3
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 See also the definition of :term:`iterable`. 107 See also the definition of :term:`iterable`.
108 108
109 .. class:: Iterator 109 .. class:: Iterator
110 110
111 ABC for classes that provide the :meth:`~iterator.__iter__` and 111 ABC for classes that provide the :meth:`~iterator.__iter__` and
112 :meth:`~iterator.__next__` methods. See also the definition of 112 :meth:`~iterator.__next__` methods. See also the definition of
113 :term:`iterator`. 113 :term:`iterator`.
114 114
115 .. class:: Reversible 115 .. class:: Reversible
116 116
117 ABC for classes that provide the :meth:`__reversed__` method. 117 ABC for iterable classes that also provide the :meth:`__reversed__`
118 method.
118 119
119 .. versionadded:: 3.6 120 .. versionadded:: 3.6
120 121
121 .. class:: Generator 122 .. class:: Generator
122 123
123 ABC for generator classes that implement the protocol defined in 124 ABC for generator classes that implement the protocol defined in
124 :pep:`342` that extends iterators with the :meth:`~generator.send`, 125 :pep:`342` that extends iterators with the :meth:`~generator.send`,
125 :meth:`~generator.throw` and :meth:`~generator.close` methods. 126 :meth:`~generator.throw` and :meth:`~generator.close` methods.
126 See also the definition of :term:`generator`. 127 See also the definition of :term:`generator`.
127 128
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 are hashable or immutable. To add set hashability using mixins, 275 are hashable or immutable. To add set hashability using mixins,
275 inherit from both :meth:`Set` and :meth:`Hashable`, then define 276 inherit from both :meth:`Set` and :meth:`Hashable`, then define
276 ``__hash__ = Set._hash``. 277 ``__hash__ = Set._hash``.
277 278
278 .. seealso:: 279 .. seealso::
279 280
280 * `OrderedSet recipe <https://code.activestate.com/recipes/576694/>`_ for an 281 * `OrderedSet recipe <https://code.activestate.com/recipes/576694/>`_ for an
281 example built on :class:`MutableSet`. 282 example built on :class:`MutableSet`.
282 283
283 * For more about ABCs, see the :mod:`abc` module and :pep:`3119`. 284 * For more about ABCs, see the :mod:`abc` module and :pep:`3119`.
OLDNEW
« no previous file with comments | « no previous file | Doc/reference/datamodel.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+