]> granicus.if.org Git - python/commitdiff
import compile function form pycodegen
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 6 Mar 2000 19:12:33 +0000 (19:12 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 6 Mar 2000 19:12:33 +0000 (19:12 +0000)
Lib/compiler/__init__.py
Tools/compiler/compiler/__init__.py

index b7348f76898e0edbbff14a06869c2840ad6bfd22..5c65ecae40f334c50577d761b19ca61cf44aafe1 100644 (file)
@@ -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
 
index b7348f76898e0edbbff14a06869c2840ad6bfd22..5c65ecae40f334c50577d761b19ca61cf44aafe1 100644 (file)
@@ -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