From 235a1e7f0198398a5a84c80f8de84d67d3585c8b Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 23 Apr 2015 15:59:16 -0400 Subject: [PATCH] pep-0492: Glossary: Future-like.__await__ must return an iterator --- pep-0492.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pep-0492.txt b/pep-0492.txt index 1f9b74aff..b12d05f51 100644 --- a/pep-0492.txt +++ b/pep-0492.txt @@ -497,11 +497,11 @@ Glossary 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