AST Objects

AST objects returned by expr(), suite(), and sequence2ast() have no methods of their own. Some of the functions defined which accept an AST object as their first argument may change to object methods in the future. The type of these objects is available as ASTType in the module.

Ordered and equality comparisons are supported between AST objects.



guido@python.org