Ordered and equality comparisons are supported between AST objects. Pickling of AST objects (using the pickle module) is also supported.
AST objects have the following methods:
[filename]) |
compileast(ast, filename)
.
) |
isexpr(ast)
.
) |
issuite(ast)
.
[line_info]) |
ast2list(ast, line_info)
.
[line_info]) |
ast2tuple(ast, line_info)
.
See About this document... for information on suggesting changes.