Skip to content

Commit 8ec9dcd

Browse files
committed
one more clarifying sentence before the generator examples
1 parent 4059f34 commit 8ec9dcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

peps/pep-0798.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,9 @@ Advanced Generator Protocol Differences
955955

956956
The differences become apparent when using the advanced generator protocol
957957
methods ``.send()``, ``.throw()``, and ``.close()``, and when the sub-iterables
958-
are themselves generators rather than simple sequences.
958+
are themselves generators rather than simple sequences. In these cases, the
959+
``yield from`` version results in the associated signal reaching the
960+
subgenerator, but the version with the explicit loop does not.
959961

960962
Delegation with ``.send()``
961963
^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)