[Python-checkins] peps: pep 492: Fix typos

yury.selivanov python-checkins at python.org
Fri Apr 17 22:57:11 CEST 2015


https://hg.python.org/peps/rev/35406e447668
changeset:   5762:35406e447668
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Fri Apr 17 16:57:08 2015 -0400
summary:
  pep 492: Fix typos

files:
  pep-0492.txt |  13 ++++---------
  1 files changed, 4 insertions(+), 9 deletions(-)


diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -371,10 +371,8 @@
                 raise StopAsyncIteration
             return value
 
-    data = "abc"
-    it = AsyncIteratorWrapper("abc")
-    async for item in it:
-        print(it)
+    async for item in AsyncIteratorWrapper("abc"):
+        print(item)
 
 
 Why StopAsyncIteration?
@@ -501,11 +499,11 @@
 
 :Asynchronous iterable:
     An object with an ``__aiter__`` method, which must return an *asynchronous
-    iterator* object.  Can be used with ``async for``. See
+    iterator* object.  Can be used with ``async for``.  See
     `Asynchronous Iterators and "async for"`_ for details.
 
 :Asynchronous iterator:
-    An asynchronous iterator has an ``__anext__`` method.See
+    An asynchronous iterator has an ``__anext__`` method.  See
     `Asynchronous Iterators and "async for"`_ for details.
 
 
@@ -537,9 +535,6 @@
 * generator: a "regular" generator, function defined with ``def`` and which
   contains a least one ``yield`` or ``yield from`` expression.
 
-*Future-like* is an object with an ``__await__`` method, see
-`Await Expression`_ section for details.
-
 
 Transition Plan
 ===============

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


More information about the Python-checkins mailing list