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
9e1cd688
Commit
9e1cd688
authored
Feb 14, 2000
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit a doc string
(real intent is to test out rsync install)
parent
1991ddc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
Lib/compiler/pycodegen.py
Lib/compiler/pycodegen.py
+6
-1
Tools/compiler/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py
+6
-1
No files found.
Lib/compiler/pycodegen.py
View file @
9e1cd688
...
@@ -121,7 +121,12 @@ class ASTVisitor:
...
@@ -121,7 +121,12 @@ class ASTVisitor:
return
meth
(
node
)
return
meth
(
node
)
class
ExampleASTVisitor
(
ASTVisitor
):
class
ExampleASTVisitor
(
ASTVisitor
):
"""Prints examples of the nodes that aren't visited"""
"""Prints examples of the nodes that aren't visited
This visitor-driver is only useful for development, when it's
helpful to develop a visitor incremently, and get feedback on what
you still have to do.
"""
examples
=
{}
examples
=
{}
def
dispatch
(
self
,
node
):
def
dispatch
(
self
,
node
):
...
...
Tools/compiler/compiler/pycodegen.py
View file @
9e1cd688
...
@@ -121,7 +121,12 @@ class ASTVisitor:
...
@@ -121,7 +121,12 @@ class ASTVisitor:
return
meth
(
node
)
return
meth
(
node
)
class
ExampleASTVisitor
(
ASTVisitor
):
class
ExampleASTVisitor
(
ASTVisitor
):
"""Prints examples of the nodes that aren't visited"""
"""Prints examples of the nodes that aren't visited
This visitor-driver is only useful for development, when it's
helpful to develop a visitor incremently, and get feedback on what
you still have to do.
"""
examples
=
{}
examples
=
{}
def
dispatch
(
self
,
node
):
def
dispatch
(
self
,
node
):
...
...
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