Skip to content

Commit 52a90c0

Browse files
committed
Language simplification
1 parent d619868 commit 52a90c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,11 @@ That might sound odd to you. You might be thinking:
406406

407407
2. What about a :ref:`yield from <yieldexpr>` within the coroutine function to a (plain)
408408
generator?
409-
It causes the following error: ``SyntaxError: yield from not allowed in a coroutine.``
409+
That causes the error: ``SyntaxError: yield from not allowed in a coroutine.``
410410
This was intentionally designed for the sake of simplicity -- mandating only
411-
one way of using coroutines. Initially ``yield`` was barred as well,
412-
but was re-accepted to allow for async generators.
411+
one way of using coroutines.
412+
Initially ``yield`` was barred as well, but was re-accepted to allow for
413+
async generators.
413414
Despite that, ``yield from`` and ``await`` effectively do the same thing.
414415

415416
=======

0 commit comments

Comments
 (0)