Skip to content

Commit 1152b1b

Browse files
committed
star_expressions
1 parent 02c6d47 commit 1152b1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The :keyword:`for` statement is used to iterate over the elements of a sequence
154154
(such as a string, tuple, or list) or other iterable object:
155155

156156
.. productionlist:: python-grammar
157-
for_stmt: "for" `target_list` "in" `star_expressions` ":" `suite`
157+
for_stmt: "for" `target_list` "in" `starred_expression_list` ":" `suite`
158158
: ["else" ":" `suite`]
159159

160160
The expression following ``in`` is evaluated once; it should yield an :term:`iterable` object.
@@ -165,7 +165,7 @@ by the iterator. When the iterator is exhausted, the suite in the :keyword:`!els
165165
if present, is executed, and the loop terminates.
166166

167167
As of Python 3.11, unpacking with starred expressions (e.g., ``*x``) is supported
168-
in the iterable expression. This follows the same rules as :token:`star_expressions` in the grammar.
168+
in the iterable expression. This follows the same rules as :token:`starred_expression_list` in the grammar.
169169

170170
.. index::
171171
pair: statement; break

0 commit comments

Comments
 (0)