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

bundles / IPython 9.10.0 / IPython / core / compilerop / CachingCompiler / ast_parse

function

IPython.core.compilerop:CachingCompiler.ast_parse

source: /IPython/core/compilerop.py :81

Signature

def   ast_parse ( self source filename = <unknown> symbol = exec )

Summary

Parse code to an AST with the current compiler flags active.

Extended Summary

Arguments are exactly the same as ast.parse (in the standard library), and are passed to the built-in compile function.

Aliases

  • IPython.core.compilerop.CachingCompiler.ast_parse