pep 492: Fix typos
This commit is contained in:
parent
7aa64dd15c
commit
118fa22b06
11
pep-0492.txt
11
pep-0492.txt
|
@ -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
|
||||
===============
|
||||
|
|
Loading…
Reference in New Issue