Changeset 391 for python/trunk/Doc/library/compiler.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/compiler.rst
r2 r391 7 7 8 8 .. 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. 10 10 11 11 .. sectionauthor:: Jeremy Hylton <jeremy@zope.com> … … 19 19 The :mod:`compiler` package is a Python source to bytecode translator written in 20 20 Python. It uses the built-in parser and standard :mod:`parser` module to 21 generate da concrete syntax tree. This tree is used to generate an abstract21 generate a concrete syntax tree. This tree is used to generate an abstract 22 22 syntax tree (AST) and then Python bytecode. 23 23 … … 541 541 542 542 The first module defines a single function. Assume it is stored in 543 :file:` /tmp/doublelib.py`. ::543 :file:`doublelib.py`. :: 544 544 545 545 """This is an example module. … … 558 558 559 559 >>> import compiler 560 >>> mod = compiler.parseFile(" /tmp/doublelib.py")560 >>> mod = compiler.parseFile("doublelib.py") 561 561 >>> mod 562 562 Module('This is an example module.\n\nThis is the docstring.\n',
Note:
See TracChangeset
for help on using the changeset viewer.