Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/compiler.rst

    r2 r391  
    77
    88.. deprecated:: 2.6
    9    The :mod:`compiler` package has been removed in Python 3.0.
     9   The :mod:`compiler` package has been removed in Python 3.
    1010
    1111.. sectionauthor:: Jeremy Hylton <jeremy@zope.com>
     
    1919The :mod:`compiler` package is a Python source to bytecode translator written in
    2020Python.  It uses the built-in parser and standard :mod:`parser` module to
    21 generated a concrete syntax tree.  This tree is used to generate an abstract
     21generate a concrete syntax tree.  This tree is used to generate an abstract
    2222syntax tree (AST) and then Python bytecode.
    2323
     
    541541
    542542The first module defines a single function.  Assume it is stored in
    543 :file:`/tmp/doublelib.py`.  ::
     543:file:`doublelib.py`.  ::
    544544
    545545   """This is an example module.
     
    558558
    559559   >>> import compiler
    560    >>> mod = compiler.parseFile("/tmp/doublelib.py")
     560   >>> mod = compiler.parseFile("doublelib.py")
    561561   >>> mod
    562562   Module('This is an example module.\n\nThis is the docstring.\n',
Note: See TracChangeset for help on using the changeset viewer.