From 0222b32b3896d9886982f46cb1d5bc41e65be4ba Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sat, 18 Apr 2015 10:40:37 -0400 Subject: [PATCH] pep-0492: Fixes, edits. --- pep-0492.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pep-0492.txt b/pep-0492.txt index 3b25a5d83..b2beadf20 100644 --- a/pep-0492.txt +++ b/pep-0492.txt @@ -480,13 +480,13 @@ Glossary 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 @@ Method Can contain Can't contain ================= ======================================= ================= 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 ================= ======================================= =================