summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/compiler/pycodegen.py7
-rw-r--r--Tools/compiler/compiler/pycodegen.py7
2 files changed, 12 insertions, 2 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 51ab9bd..4f8d824 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -121,7 +121,12 @@ class ASTVisitor:
return meth(node)
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 = {}
def dispatch(self, node):
diff --git a/Tools/compiler/compiler/pycodegen.py b/Tools/compiler/compiler/pycodegen.py
index 51ab9bd..4f8d824 100644
--- a/Tools/compiler/compiler/pycodegen.py
+++ b/Tools/compiler/compiler/pycodegen.py
@@ -121,7 +121,12 @@ class ASTVisitor:
return meth(node)
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 = {}
def dispatch(self, node):