peps: f156b272f860 (original) (raw)

--- a/pep-0492.txt +++ b/pep-0492.txt @@ -112,7 +112,7 @@ Key properties of coroutines: CO_GENERATOR flags set.

-2. Plain generators cannot yield from native coroutine objects: +2. Plain generators cannot yield from native coroutines: doing so will result in a TypeError. 3. generator-based coroutines (for asyncio code must be decorated @@ -606,7 +607,7 @@ 3. generator-based coroutines (for asy objects*. 4. inspect.isgenerator() and inspect.isgeneratorfunction()

@@ -614,13 +615,13 @@ Coroutine object methods '''''''''''''''''''''''' Coroutines are based on generators internally, thus they share the -implementation. Similarly to generator objects, coroutine objects have +implementation. Similarly to generator objects, coroutines have throw(), send() and close() methods. StopIteration and -GeneratorExit play the same role for coroutine objects (although +GeneratorExit play the same role for coroutines (although PEP 479 is enabled by default for coroutines). See PEP 342, PEP 380, and Python Documentation [11]_ for details. -throw(), send() methods for coroutine objects are used to push +throw(), send() methods for coroutines are used to push values and raise errors into Future-like objects. @@ -668,7 +669,7 @@ New Standard Library Functions details.

:Future-like object: An object with an __await__ method, or a C object with @@ -723,7 +724,7 @@ Glossary Expression`_ for details. :Awaitable: