API reference

python:astx:astx.flows.WhileStmt.__init__

method __init__

__init__(condition: Expr, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None

Source: packages/astx/src/astx/flows.py:935

Initialize the WhileStmt instance.

Parameters

Search documentation

Type to search.