summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-16 23:25:48 (GMT)
committerYury Selivanov <yury@magic.io>2016-11-16 23:25:48 (GMT)
commit6592dbd2a8d33309b5dd9ca6de9c13a7a6bd506e (patch)
tree49f99e489add478b06e1ad3d15213a04742aa36a /Doc
parentbb2356500c87cc0c6d90813b2e814181a8bac13d (diff)
parent22214ab0af2cbea1611b2193354f248ca6b03e87 (diff)
downloadcpython-6592dbd2a8d33309b5dd9ca6de9c13a7a6bd506e.zip
cpython-6592dbd2a8d33309b5dd9ca6de9c13a7a6bd506e.tar.gz
cpython-6592dbd2a8d33309b5dd9ca6de9c13a7a6bd506e.tar.bz2
Merge 3.6 (issue #28720)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.abc.rst8
-rw-r--r--Doc/whatsnew/3.6.rst4
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst
index e4b75a0..3ac49db 100644
--- a/Doc/library/collections.abc.rst
+++ b/Doc/library/collections.abc.rst
@@ -92,6 +92,7 @@ ABC Inherits from Abstract Methods Mixin
:class:`Coroutine` :class:`Awaitable` ``send``, ``throw`` ``close``
:class:`AsyncIterable` ``__aiter__``
:class:`AsyncIterator` :class:`AsyncIterable` ``__anext__`` ``__aiter__``
+:class:`AsyncGenerator` :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``, ``__anext__``
========================== ====================== ======================= ====================================================
@@ -222,6 +223,13 @@ ABC Inherits from Abstract Methods Mixin
.. versionadded:: 3.5
+.. class:: Generator
+
+ ABC for asynchronous generator classes that implement the protocol
+ defined in :pep:`525` and :pep:`492`.
+
+ .. versionadded:: 3.6
+
These ABCs allow us to ask classes or instances if they provide
particular functionality, for example::
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index 801191c..ce8ab98 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -912,6 +912,10 @@ The new :class:`~collections.abc.Reversible` abstract base class represents
iterable classes that also provide the :meth:`__reversed__`.
(Contributed by Ivan Levkivskyi in :issue:`25987`.)
+The new :class:`~collections.abc.AsyncGenerator` abstract base class represents
+asynchronous generators.
+(Contributed by Yury Selivanov in :issue:`28720`.)
+
The :func:`~collections.namedtuple` function now accepts an optional
keyword argument *module*, which, when specified, is used for
the ``__module__`` attribute of the returned named tuple class.