API reference

python:astx:astx.WhileStmt

class WhileStmt

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

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

Declared as: python:astx:astx.flows.WhileStmt

AST class for while statement.

Attributes

Methods

Attributes

Search documentation

Type to search.