API reference
python:astx:astx.comprehensions.Comprehension
class Comprehension
Comprehension(generators: Iterable[ComprehensionClause] | ASTNodes[ComprehensionClause], loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/comprehensions.py:124
AST Comprehension class.
Attributes
- generators — Type: ASTNodes[ComprehensionClause]
Methods
-
__init__ — Initialize the comprehension expression.
-
get_struct — Return the AST structure of the object.