diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-09-10 22:59:42 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-09-10 22:59:42 (GMT) |
commit | 1c73e69ec5fb342414489f98e825c74c354327dc (patch) | |
tree | 3751e89a810ac5e49b01742e15be2441b735e030 /Doc/whatsnew/3.5.rst | |
parent | 83c6d729d4f72273ff0dc1af91d92034c0f6f457 (diff) | |
download | cpython-1c73e69ec5fb342414489f98e825c74c354327dc.zip cpython-1c73e69ec5fb342414489f98e825c74c354327dc.tar.gz cpython-1c73e69ec5fb342414489f98e825c74c354327dc.tar.bz2 |
whatsnew/3.5: Clarify types.coroutine & types.CoroutineType
Diffstat (limited to 'Doc/whatsnew/3.5.rst')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index a372122..4059801 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -1380,11 +1380,15 @@ now support negative values for the *limit* argument. types ----- -New :func:`~types.coroutine` function. (Contributed by Yury Selivanov -in :issue:`24017`.) - -New :class:`~types.CoroutineType`. (Contributed by Yury Selivanov -in :issue:`24400`.) +A new :func:`~types.coroutine` function to transform +:term:`generator <generator iterator>` and +:class:`generator-like <collections.abc.Generator>` objects into +:term:`awaitables <awaitable>`. +(Contributed by Yury Selivanov in :issue:`24017`.) + +A new :class:`~types.CoroutineType` is the type of :term:`coroutine` objects, +produced by calling a function defined with an :keyword:`async def` statement. +(Contributed by Yury Selivanov in :issue:`24400`.) urllib |