[Python-checkins] peps: pep-0492: Glossary: Future-like.__await__ must return an iterator
yury.selivanov
python-checkins at python.org
Thu Apr 23 22:00:16 CEST 2015
https://hg.python.org/peps/rev/bdb807d4d4bc
changeset: 5793:bdb807d4d4bc
user: Yury Selivanov <yselivanov at sprymix.com>
date: Thu Apr 23 15:59:16 2015 -0400
summary:
pep-0492: Glossary: Future-like.__await__ must return an iterator
files:
pep-0492.txt | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -497,11 +497,11 @@
details.
:Future-like object:
- An object with an ``__await__`` method. Can be consumed by an
- ``await`` expression in a coroutine. A coroutine waiting for a
- Future-like object is suspended until the Future-like object's
- ``__await__`` completes, and returns the result. See `Await
- Expression`_ for details.
+ An object with an ``__await__`` method returning an iterator. Can
+ be consumed by an ``await`` expression in a coroutine. A coroutine
+ waiting for a Future-like object is suspended until the Future-like
+ object's ``__await__`` completes, and returns the result. See
+ `Await Expression`_ for details.
:Awaitable:
A *Future-like* object or a *coroutine object*. See `Await
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list