[Python-checkins] peps: pep-0492: Fixes, edits.
yury.selivanov
python-checkins at python.org
Sat Apr 18 16:40:41 CEST 2015
https://hg.python.org/peps/rev/7dce8391c235
changeset: 5770:7dce8391c235
user: Yury Selivanov <yselivanov at sprymix.com>
date: Sat Apr 18 10:40:37 2015 -0400
summary:
pep-0492: Fixes, edits.
files:
pep-0492.txt | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -480,13 +480,13 @@
Returned from a coroutine function. See `Await Expression`_ for details.
:Future-like object:
- An object with an ``__await__`` method. It is consumed by ``await`` in a
- coroutine. A coroutine waiting for a Future-like object is suspended until
- the Future-like object's ``__await__`` completes. ``await`` returns the
- result of the Future-like object. See `Await Expression`_ for details.
+ 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.
:Awaitable:
- A *future-like* object or a *coroutine object*. See `Await Expression`_
+ A *Future-like* object or a *coroutine object*. See `Await Expression`_
for details.
:Generator-based coroutine:
@@ -516,7 +516,7 @@
================= ======================================= =================
async def func await, return value yield, yield from
async def __a*__ await, return value yield, yield from
-def __a*__ return Future-like await
+def __a*__ return awaitable await
def __await__ yield, yield from, return iterable await
generator yield, yield from, return value await
================= ======================================= =================
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list