@@ -778,9 +778,9 @@ Beyond the proposal outlined above, the following were also considered:
778778 This strategy would also make unpacking in synchronous and asynchronous
779779 generators behave symmetrically, but it would also be more complex, enough
780780 so that the cost may not be worth the benefit. As such, this PEP proposes
781- that generator expressions using the unpacking operator should not use
782- semantics similar to ``yield from `` until ``yield from `` is supported in
783- asynchronous generators more generally.
781+ that asynchronous generator expressions using the unpacking operator should
782+ not adopt semantics similar to ``yield from `` until ``yield from `` is
783+ supported in asynchronous generators more generally.
784784
7857853. Using ``yield from `` for unpacking in synchronous generator expressions, and
786786 disallowing unpacking in asynchronous generator expressions until they
@@ -822,8 +822,9 @@ this syntax was clear and intuitive, several concerns and potential downsides
822822were raised as well. This section aims to summarize those concerns.
823823
824824* **Overlap with existing alternatives: **
825- While the proposed syntax is arguably more concise, there are already several
826- ways to accomplish this same thing in Python.
825+ While the proposed syntax represents a consistent extension to the language
826+ and is likely to result in more-concise code, there are already several ways
827+ to accomplish this same thing in Python.
827828
828829* **Function call ambiguity: **
829830 Expressions like ``f(*x for x in y) `` may initially appear ambiguous, as it's
@@ -839,7 +840,7 @@ were raised as well. This section aims to summarize those concerns.
839840 particularly complex uses even more difficult to read and understand at a
840841 glance. For example, while these situations are likely rare, comprehensions
841842 that use unpacking in multiple ways can make it difficult to know what's
842- being unpacked and when: ``f(*(*x for *x, _ in list_of_lists)) ``.
843+ being unpacked and when, e.g., ``f(*(*x for *x, _ in list_of_lists)) ``.
843844
844845* **Unclear limitation of scope: **
845846 This proposal restricts unpacking to the top level of the comprehension
0 commit comments