This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / IPython / core / interactiveshell / InteractiveShell / transform_ast

function

IPython.core.interactiveshell:InteractiveShell.transform_ast

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

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