API reference
python:astx:astx.ForInLoopStmt.__init__
method __init__
__init__(target: astx.AST, iterable: astx.AST, body: astx.Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: astx.ASTNodes | None = None) -> None
Source: packages/astx/src/astx/iterables.py:36
Declared as: python:astx:astx.iterables.ForInLoopStmt.__init__
Initialize one for-in statement.
Parameters
-
target — Destination of the operation.; Type: astx.AST
-
iterable — Iterable.; Type: astx.AST
-
body — Statements forming the body.; Type: astx.Block
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: astx.ASTNodes | None
Returns
Type: None