Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303e30e commit 7fabaf8Copy full SHA for 7fabaf8
1 file changed
Doc/ref/ref7.tex
@@ -134,8 +134,10 @@ \section{The \keyword{for} statement\label{for}}
134
\productioncont{["else" ":" \token{suite}]}
135
\end{productionlist}
136
137
-The expression list is evaluated once; it should yield a sequence. The
138
-suite is then executed once for each item in the sequence, in the
+The expression list is evaluated once; it should yield an iterable
+object. An iterator is created for the result of the
139
+{}\code{expression_list}. The suite is then executed once for each
140
+item provided by the iterator, in the
141
order of ascending indices. Each item in turn is assigned to the
142
target list using the standard rules for assignments, and then the
143
suite is executed. When the items are exhausted (which is immediately
0 commit comments