pep 492: Fix typos

This commit is contained in:
Yury Selivanov 2015-04-17 16:57:08 -04:00
parent 7aa64dd15c
commit 118fa22b06
1 changed files with 4 additions and 9 deletions

View File

@ -371,10 +371,8 @@ illustrates the relationship between regular and asynchronous iterators.
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?
@ -505,7 +503,7 @@ Glossary
`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 @@ Where:
* 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
===============