[Python-checkins] peps: pep-0492: Fix explanation that async def are always coroutines

yury.selivanov python-checkins at python.org
Sat Apr 18 00:07:02 CEST 2015


https://hg.python.org/peps/rev/130e8d350a1b
changeset:   5766:130e8d350a1b
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Fri Apr 17 18:06:30 2015 -0400
summary:
  pep-0492: Fix explanation that async def are always coroutines

files:
  pep-0492.txt |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -78,8 +78,8 @@
 
 Key properties of coroutines:
 
-* Coroutines are always generators, even if they do not contain ``await``
-  expressions.
+* ``async def`` functions are always coroutines, even if they do not contain
+  ``await`` expressions.
 
 * It is a ``SyntaxError`` to have ``yield`` or ``yield from`` expressions in
   an ``async`` function.

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


More information about the Python-checkins mailing list