~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/ast.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
grammar looks like.
23
23
 
24
24
An abstract syntax tree can be generated by passing :data:`ast.PyCF_ONLY_AST` as
25
 
a flag to the :func:`compile` builtin function, or using the :func:`parse`
 
25
a flag to the :func:`compile` built-in function, or using the :func:`parse`
26
26
helper provided in this module.  The result will be a tree of objects whose
27
27
classes all inherit from :class:`ast.AST`.  An abstract syntax tree can be
28
28
compiled into a Python code object using the built-in :func:`compile` function.