18.1.5 AST Objects
Ordered and equality comparisons are supported between AST objects.
Pickling of AST objects (using the pickle module) is also
supported.
- ASTType
-
The type of the objects returned by expr(),
suite() and sequence2ast().
AST objects have the following methods:
-
Same as
compileast(ast, filename)
.
-
Same as
isexpr(ast)
.
-
Same as
issuite(ast)
.
-
Same as
ast2list(ast, line_info)
.
-
Same as
ast2tuple(ast, line_info)
.
Release 2.4, documentation updated on 30 November 2004.
See About this document... for information on suggesting changes.