API reference
python:astx:astx.FinallyHandlerStmt
class FinallyHandlerStmt
FinallyHandlerStmt(body: Block[AST], parent: Optional[ASTNodes] = None, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/exceptions.py:294
Declared as: python:astx:astx.exceptions.FinallyHandlerStmt
AST class for finally statements.
Attributes
-
kind — Kind of value or operation.; Type: ASTKind
-
body — Statements forming the body.; Type: Block[AST]
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
Methods
-
__init__ — Initialize the instance.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the AST structure of the object.