API reference
python:astx:astx.PrintExpr
class PrintExpr
PrintExpr(message: astx.Expr)
Source: packages/astx/src/astx/system.py:76
Declared as: python:astx:astx.system.PrintExpr
PrintExpr AST class.
Attributes
-
message — Diagnostic message.; Type: astx.Expr
-
_name — Name of .; Type: str
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
Notes
It would be nice to support more arguments similar to the ones supported by Python (*args, sep=' ', end='', file=None, flush=False).
Methods
-
__init__ — Initialize the PrintExpr.
-
get_struct — Return the AST structure of the object.