@@ -154,15 +154,15 @@ The :keyword:`for` statement is used to iterate over the elements of a sequence
154
154
(such as a string, tuple or list) or other iterable object:
155
155
156
156
..productionlist ::python-grammar
157
- for_stmt: "for" `target_list ` "in" `starred_list ` ":" `suite `
157
+ for_stmt: "for" `target_list ` "in" `starred_expression_list ` ":" `suite `
158
158
: ["else" ":" `suite `]
159
159
160
- The`` starred_list `` expression is evaluated once; it should yield an
161
- :term: `iterable ` object. An:term: `iterator ` is created for that iterable.
162
- The first item provided
163
- by the iterator is then assigned to the target list using the standard
164
- rules for assignments (see:ref: `assignment `), and the suite is executed. This
165
- repeats for each item provided by the iterator. When the iterator is exhausted,
160
+ The:token: ` ~python-grammar:starred_expression_list ` expression is evaluated
161
+ once; it should yield an :term: `iterable ` object. An:term: `iterator ` is
162
+ created for that iterable. The first item provided by the iterator is then
163
+ assigned to the target list using the standard rules for assignments
164
+ (see:ref: `assignment `), and the suite is executed. This repeats for each
165
+ item provided by the iterator. When the iterator is exhausted,
166
166
the suite in the:keyword: `!else ` clause,
167
167
if present, is executed, and the loop terminates.
168
168