Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f728f9a

Browse files
committed
import compile function form pycodegen
1 parent 7fab23e commit f728f9a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lib/compiler/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
walk(ast, visitor, verbose=None)
1414
Does a pre-order walk over the ast using the visitor instance.
1515
See compiler.visitor for details.
16+
17+
compile(filename)
18+
Generates a .pyc file by compilining filename.
1619
"""
1720

1821
from transformer import parse, parseFile
1922
from visitor import walk
23+
from pycodegen import compile
2024

Tools/compiler/compiler/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
walk(ast, visitor, verbose=None)
1414
Does a pre-order walk over the ast using the visitor instance.
1515
See compiler.visitor for details.
16+
17+
compile(filename)
18+
Generates a .pyc file by compilining filename.
1619
"""
1720

1821
from transformer import parse, parseFile
1922
from visitor import walk
23+
from pycodegen import compile
2024

0 commit comments

Comments
 (0)