File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -580,15 +580,16 @@ expressions that involve unpacking::
580580 yield from expr
581581 g = generator()
582582
583- We can then generalize from these specific examples to the idea that,
584- wherever a non-starred comprehension/genexp would use an operator that
585- adds a single element to a collection, the starred would instead use
586- an operator that adds multiple elements to that collection.
583+ We can then generalize from these specific examples to the idea that, wherever
584+ a non-starred comprehension/genexp would use an operator that adds a single
585+ element to a collection, the starred would instead use an operator that adds
586+ multiple elements to that collection.
587587
588588Alternatively, we don't need to think of the two ideas as separate; instead,
589589with the new syntax, we can think of ``out = [...x... for x in it] `` as
590- equivalent to the following code [#pep798-guido ]_, regardless of whether or not
591- ``...x... `` uses ``* ``::
590+ equivalent to the following code [#pep798-guido ]_ (where ``...x... `` is a
591+ stand-in for an arbitrary expression), regardless of whether or not ``...x... ``
592+ uses ``* ``::
592593
593594 out = []
594595 for x in it:
You can’t perform that action at this time.
0 commit comments