class documentation

When given an expression, the node returned by L{ast.NodeVisitor.visit()} will also be an expression. If any string literal contained in the original expression is either invalid Python or not a singular expression, L{SyntaxError} is raised.

Method __init__ Undocumented
Method visit_Constant Undocumented
Method visit_Str Undocumented
Method visit_Subscript Undocumented
Instance Variable filename Undocumented
Method _parse_string Undocumented
def __init__(self, filename: str | None): (source)

Undocumented

def visit_Constant(self, node: ast.Constant) -> ast.expr: (source)

Undocumented

def visit_Str(self, node: ast.Str) -> ast.expr: (source)

Undocumented

def visit_Subscript(self, node: ast.Subscript) -> ast.Subscript: (source)

Undocumented

filename = (source)

Undocumented

def _parse_string(self, value: str, ctx: ast.AST) -> ast.expr: (source)

Undocumented