GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — 17.1.5 AST Objects

Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 17.1.4 Exceptions and Error Up: 17.1 parser Next: 17.1.6 Examples


17.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:

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


Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 17.1.4 Exceptions and Error Up: 17.1 parser Next: 17.1.6 Examples

See About this document... for information on suggesting changes.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.