Skip to content

Commit 20e62fc

Browse files
committed
fix a few typos, add a brief note to backwards compatibility section
1 parent 53d9444 commit 20e62fc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

peps/pep-0798.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,12 @@ expect to be rare.
398398

399399
One related concern is that a hypothetical future decision to change the
400400
semantics of async generator expressions to make use of ``yield from`` during
401-
unpacking (delegating to generators that are being unpacked) would be not be
401+
unpacking (delegating to generators that are being unpacked) would not be
402402
backwards-compatible because it would affect the behavior of the resulting
403-
generators when used with ``.asend()``, ``.athrow()``, and ``.aclose()``. See
403+
generators when used with ``.asend()``, ``.athrow()``, and ``.aclose()``. That
404+
said, despite being backwards-incompatible, such a change would be unlikely to
405+
have a large impact because it would only affect the behavior of structures
406+
that, under this proposal, are not particularly useful. See
404407
:ref:`pep798-alternativegenexpsemantics` for more discussion.
405408

406409
.. _pep798-examples:
@@ -780,7 +783,7 @@ Beyond the proposal outlined above, the following were also considered:
780783
expressions do gain support for ``yield from`` in the future by making sure
781784
that any decision made at that point would be fully backwards-compatible.
782785
But the utility of unpacking in that context seems to outweigh the potential
783-
downside of a backwards-incompatible change in the future if aync generator
786+
downside of a backwards-incompatible change in the future if async generator
784787
expressions do receive support for ``yield from``.
785788

786789
4. Disallowing unpacking in all generator expressions.

0 commit comments

Comments
 (0)