diff options
author | Yury Selivanov <yury@magic.io> | 2016-06-09 19:08:31 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-06-09 19:08:31 (GMT) |
commit | a6f6edbda8648698289a8ee7abef6a35c924151b (patch) | |
tree | 9eb77fd4f552bcabfb46a3938d0ded084e7709f9 /Doc/whatsnew | |
parent | ebe95fdabb42b02ff7eecab6bc9637cf5ccf1d2c (diff) | |
download | cpython-a6f6edbda8648698289a8ee7abef6a35c924151b.zip cpython-a6f6edbda8648698289a8ee7abef6a35c924151b.tar.gz cpython-a6f6edbda8648698289a8ee7abef6a35c924151b.tar.bz2 |
Issue #27243: Fix __aiter__ protocol
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 83d5ce6..2d7f8a4 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -247,6 +247,19 @@ be used inside a coroutine function declared with :keyword:`async def`. Coroutine functions are intended to be run inside a compatible event loop, such as the :ref:`asyncio loop <asyncio-event-loop>`. + +.. note:: + + .. versionchanged:: 3.5.2 + Starting with CPython 3.5.2, ``__aiter__`` can directly return + :term:`asynchronous iterators <asynchronous iterator>`. Returning + an :term:`awaitable` object will result in a + :exc:`PendingDeprecationWarning`. + + See more details in the :ref:`async-iterators` documentation + section. + + .. seealso:: :pep:`492` -- Coroutines with async and await syntax |