[Python-checkins] cpython (3.5): whatsnew/3.5: Clarify types.coroutine & types.CoroutineType

yury.selivanov python-checkins at python.org
Fri Sep 11 01:00:00 CEST 2015


https://hg.python.org/cpython/rev/8750ef16c75d
changeset:   97882:8750ef16c75d
branch:      3.5
parent:      97880:da84aedc5fdb
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Thu Sep 10 18:59:42 2015 -0400
summary:
  whatsnew/3.5: Clarify types.coroutine & types.CoroutineType

files:
  Doc/whatsnew/3.5.rst |  12 ++++++++----
  1 files changed, 8 insertions(+), 4 deletions(-)


diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -1380,11 +1380,15 @@
 types
 -----
 
-New :func:`~types.coroutine` function.  (Contributed by Yury Selivanov
-in :issue:`24017`.)
+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`.)
 
-New :class:`~types.CoroutineType`.  (Contributed by Yury Selivanov
-in :issue:`24400`.)
+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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list