You are viewing an older version (9.10.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.10.0 / IPython / core / interactiveshell / InteractiveShell / transform_ast

function

IPython.core.interactiveshell:InteractiveShell.transform_ast

source: /IPython/core/interactiveshell.py :3508

Signature

def   transform_ast ( self node )

Summary

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.

Aliases

  • IPython.InteractiveShell.transform_ast