summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-29 13:01:29 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-29 13:01:29 (GMT)
commit56fc61402533dc550244efe3e860242872f35bad (patch)
tree859b4c58dac06f2760d97814f36f8664a50af121 /Doc/library
parent8fa6d4f75311bb459da50226c726d1ab7ccf115b (diff)
downloadcpython-56fc61402533dc550244efe3e860242872f35bad.zip
cpython-56fc61402533dc550244efe3e860242872f35bad.tar.gz
cpython-56fc61402533dc550244efe3e860242872f35bad.tar.bz2
Issue 24315: Make collections.abc.Coroutine derived from Awaitable
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/collections.abc.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst
index 0039bb2..8c710ef 100644
--- a/Doc/library/collections.abc.rst
+++ b/Doc/library/collections.abc.rst
@@ -82,7 +82,7 @@ ABC Inherits from Abstract Methods Mixin
:class:`Set` ``__iter__``
:class:`ValuesView` :class:`MappingView` ``__contains__``, ``__iter__``
:class:`Awaitable` ``__await__``
-:class:`Coroutine` ``send``, ``throw`` ``close``
+:class:`Coroutine` :class:`Awaitable` ``send``, ``throw`` ``close``
:class:`AsyncIterable` ``__aiter__``
:class:`AsyncIterator` :class:`AsyncIterable` ``__anext__`` ``__aiter__``
========================== ====================== ======================= ====================================================
@@ -166,10 +166,10 @@ ABC Inherits from Abstract Methods Mixin
ABC for coroutine compatible classes that implement a subset of
generator methods defined in :pep:`342`, namely:
- :meth:`~generator.send`, :meth:`~generator.throw` and
- :meth:`~generator.close` methods. All :class:`Coroutine` instances
- are also instances of :class:`Awaitable`. See also the definition
- of :term:`coroutine`.
+ :meth:`~generator.send`, :meth:`~generator.throw`,
+ :meth:`~generator.close` methods. :meth:`__await__` must also be
+ implemented. All :class:`Coroutine` instances are also instances of
+ :class:`Awaitable`. See also the definition of :term:`coroutine`.
.. versionadded:: 3.5