Website hosting service by

 Back to Index

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.


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).



2002-2004 Webhosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to offers domain name registration, domain name transfer and domain search services  

Cheap domain registration : Register domain name or buy domain name, including free domain hosting services


Domain registration : Buy domain name or register domain name from $5.95/year only