[Python-checkins] peps: pep-0492: async_def() works on generator-functions.

yury.selivanov python-checkins at python.org
Sat Apr 18 19:32:18 CEST 2015


https://hg.python.org/peps/rev/48106b854247
changeset:   5771:48106b854247
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Sat Apr 18 13:31:56 2015 -0400
summary:
  pep-0492: async_def() works on generator-functions.

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
@@ -99,8 +99,8 @@
 types.async_def()
 -----------------
 
-A new function ``async_def(gen)`` is added to the ``types`` module.  It
-applies ``CO_ASYNC`` flag to the passed generator's code object, so that it
+A new function ``async_def(gen)`` is added to the ``types`` module.  It applies
+``CO_ASYNC`` flag to the passed generator-function's code object, so that it
 returns a *coroutine object* when called.
 
 This feature enables an easy upgrade path for existing libraries.

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


More information about the Python-checkins mailing list