GNU Info

Info Node: (python2.1-lib.info)Examples 4

(python2.1-lib.info)Examples 4


Prev: AST Objects Up: parser
Enter node , (file) or (file)node

Examples
--------

The parser modules allows operations to be performed on the parse tree
of Python source code before the bytecode is generated, and provides
for inspection of the parse tree for information gathering purposes.
Two examples are presented.  The simple example demonstrates emulation
of the `compile()'  built-in function and the complex example shows the
use of a parse tree for information discovery.

Emulation of compile
Information Discovery

automatically generated by info2www version 1.2.2.9