Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
85e155be
Commit
85e155be
authored
Mar 06, 2000
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import compile function form pycodegen
parent
92ecae51
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Lib/compiler/__init__.py
Lib/compiler/__init__.py
+4
-0
Tools/compiler/compiler/__init__.py
Tools/compiler/compiler/__init__.py
+4
-0
No files found.
Lib/compiler/__init__.py
View file @
85e155be
...
@@ -13,8 +13,12 @@ parseFile(path) -> AST
...
@@ -13,8 +13,12 @@ parseFile(path) -> AST
walk(ast, visitor, verbose=None)
walk(ast, visitor, verbose=None)
Does a pre-order walk over the ast using the visitor instance.
Does a pre-order walk over the ast using the visitor instance.
See compiler.visitor for details.
See compiler.visitor for details.
compile(filename)
Generates a .pyc file by compilining filename.
"""
"""
from
transformer
import
parse
,
parseFile
from
transformer
import
parse
,
parseFile
from
visitor
import
walk
from
visitor
import
walk
from
pycodegen
import
compile
Tools/compiler/compiler/__init__.py
View file @
85e155be
...
@@ -13,8 +13,12 @@ parseFile(path) -> AST
...
@@ -13,8 +13,12 @@ parseFile(path) -> AST
walk(ast, visitor, verbose=None)
walk(ast, visitor, verbose=None)
Does a pre-order walk over the ast using the visitor instance.
Does a pre-order walk over the ast using the visitor instance.
See compiler.visitor for details.
See compiler.visitor for details.
compile(filename)
Generates a .pyc file by compilining filename.
"""
"""
from
transformer
import
parse
,
parseFile
from
transformer
import
parse
,
parseFile
from
visitor
import
walk
from
visitor
import
walk
from
pycodegen
import
compile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment