API reference
python:astx:astx.Starred
class Starred
Starred(value: Expr, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/operators.py:364
Declared as: python:astx:astx.operators.Starred
AST class for starred expressions (*expr).
Attributes
-
kind — Kind of value or operation.; Type: ASTKind
-
value — Stored value.; Type: Expr
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
Methods
-
__init__ — Initialize the starred expression.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the AST structure that represents the object.