File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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=======
You can’t perform that action at this time.
0 commit comments