Skip to content

Commit bf99189

Browse files
committed
wording of concerns/disadvantages
1 parent f7171db commit bf99189

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

peps/pep-0798.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ were raised as well. This section aims to summarize those concerns.
709709
Expressions like ``f(*x for x in y)`` may initially appear ambiguous, as it's
710710
not obvious whether the intent is to unpack the generator or to pass it as a
711711
single argument. Although this proposal retains existing conventions by
712-
treating that form as equivalent to ``f((*x for x in y))``, that may not be
713-
immediately obvious.
712+
treating that form as equivalent to ``f((*x for x in y))``, that equivalence
713+
may not be immediately obvious.
714714

715715
* **Potential for overuse or abuse:**
716716
Complex uses of unpacking in comprehensions could obscure logic that would be
@@ -723,11 +723,11 @@ were raised as well. This section aims to summarize those concerns.
723723

724724
* **Unclear limitation of scope:**
725725
This proposal restricts unpacking to the top level of the comprehension
726-
expression. These restrictions may seem arbitrary or surprising to users who
727-
expect unpacking to work more generally within expressions.
726+
expression, but some users may expect that the unpacking operator is being
727+
further generalized as discussed in :ref:`moregeneral`.
728728

729729
* **Effect on External Tools:**
730-
As with any new syntactical structure, making this change would create work
730+
As with any change to Python's syntax, making this change would create work
731731
for maintainers of code formatters, linters, type checkers, etc., to make
732732
sure that the new syntax is supported.
733733

0 commit comments

Comments
 (0)