summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-03-06 19:12:33 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-03-06 19:12:33 (GMT)
commitf728f9a13e01e7d9fdd791f0a6e9a8ab1b6249a5 (patch)
tree7c14e8fb7797cb724cebeab301a860001ced4653 /Lib
parent7fab23e9cb82835a9d0d2b73aaf13c5e9a8105cc (diff)
downloadcpython-f728f9a13e01e7d9fdd791f0a6e9a8ab1b6249a5.zip
cpython-f728f9a13e01e7d9fdd791f0a6e9a8ab1b6249a5.tar.gz
cpython-f728f9a13e01e7d9fdd791f0a6e9a8ab1b6249a5.tar.bz2
import compile function form pycodegen
Diffstat (limited to 'Lib')
-rw-r--r--Lib/compiler/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/compiler/__init__.py b/Lib/compiler/__init__.py
index b7348f7..5c65eca 100644
--- a/Lib/compiler/__init__.py
+++ b/Lib/compiler/__init__.py
@@ -13,8 +13,12 @@ parseFile(path) -> AST
walk(ast, visitor, verbose=None)
Does a pre-order walk over the ast using the visitor instance.
See compiler.visitor for details.
+
+compile(filename)
+ Generates a .pyc file by compilining filename.
"""
from transformer import parse, parseFile
from visitor import walk
+from pycodegen import compile