Ordered and equality comparisons are supported between AST objects.Pickling of AST objects (using thepickle module) is alsosupported.
AST objects have the following methods:
compileast(ast,filename).isexpr(ast).issuite(ast).ast2list(ast,line_info).ast2tuple(ast,line_info).| Python Library Reference |