ast
ast — Abstract Syntax Trees
New in version 2.5: The low-level _ast
module containing only the node classes.
New in version 2.6: The high-level ast
module containing all helpers.
Source code: Lib/ast.py
The ast
module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like.
An abstract syntax