For Statement AST Python Object
The ForStatement
object matches a Python function, module or object call.
The astType
value for this node is forstatement
.
Code Pattern
This AST element captures the following code.
for v, w in ...:
...
Attributes
variables
(array ofPythonExpression
): list of variables in thefor
expressionlist
(typeAstString
): the liststatements
(typeAstString
): the code for the statementselseStatement
(typePythonElseStatement
): the code of the else statements