GNU Info

Info Node: (python2.1-lib.info)AST Objects

(python2.1-lib.info)AST Objects


Next: Examples 4 Prev: Exceptions and Error Handling Up: parser
Enter node , (file) or (file)node

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:

`compile([filename])'
     Same as `compileast(AST, FILENAME)'.

`isexpr()'
     Same as `isexpr(AST)'.

`issuite()'
     Same as `issuite(AST)'.

`tolist([line_info])'
     Same as `ast2list(AST, LINE_INFO)'.

`totuple([line_info])'
     Same as `ast2tuple(AST, LINE_INFO)'.


automatically generated by info2www version 1.2.2.9