@@ -1388,8 +1388,8 @@ In particular:
13881388 :widths: auto
13891389 :header-rows: 1
13901390
1391- * * ``yield from `` construct
1392- * `` async yield from `` construct
1391+ * * Synchronous ``yield from ``
1392+ * Asynchronous `` yield from ``
13931393 * * :meth: `~object.__iter__ `
13941394 * :meth: `~object.__aiter__ `
13951395 * * :meth: `~generator.__next__ `
@@ -1404,15 +1404,15 @@ To describe the above:
14041404* The object being delegated to must be asynchronously iterable (that is, it
14051405 must implement ``__aiter__ `` instead of ``__iter__ ``).
14061406* When ``anext `` is called on the parent generator (the one that contains
1407- ``async yield from ``), ``__anext__ `` will be invoked on the subgenerator.
1407+ ``yield from ``), ``__anext__ `` will be invoked on the subgenerator.
14081408 In contrast, a synchronous ``yield from `` would invoke ``__next__ `` instead.
14091409 (Note that calling ``asend `` with a ``None `` value is equivalent to calling
14101410 ``anext() ``, and thus applies here.)
14111411* All calls to ``asend ``, ``athrow ``, and ``aclose `` are delegated to the
14121412 subgenerator (the object returned by ``__aiter__ `` in this case). This means
14131413 that a call to ``parent_generator.asend(x) `` is semantically equivalent to
14141414 ``sub_generator.asend(x) ``, where ``parent_generator `` is currently executing
1415- an `` async yield from `` on ``sub_generator ``.
1415+ an asynchronous `` yield from `` on ``sub_generator ``.
14161416* The result of the expression is retrieved through
14171417 :attr: `StopAsyncIteration.value ` instead of :attr: `StopIteration.value `.
14181418
@@ -1449,8 +1449,8 @@ An example of usage for ``yield from`` in async generator:
14491449 File "<python-input-4>", line 1, in <module>
14501450 await ag.athrow(ValueError("Nobody expects the Spanish Inquisition"))
14511451 File "<python-input-0>", line 8, in counter
1452- final_number = async yield from sleepy_count(4)
1453- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1452+ final_number = yield from sleepy_count(4)
1453+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
14541454 File "<python-input-0>", line 3, in sleepy_count
14551455 result = yield num
14561456 ^^^^^^^^^
0 commit comments