TenjintShell.transform_ast

TenjintShell.transform_ast(node)

Apply the AST transformations from self.ast_transformers

Parameters

node (ast.Node) – The root node to be transformed. Typically called with the ast.Module produced by parsing user input.

Returns

  • An ast.Node corresponding to the node it was called with. Note that it

  • may also modify the passed object, so don’t rely on references to the

  • original AST.