diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-18 16:26:40 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-18 16:26:40 (GMT) |
commit | 16af557ae9c660cbd728546dcb28ec95b0030991 (patch) | |
tree | 9132faeed9b72a2d95c98d6d80917545db7db377 /Lib/compiler/visitor.py | |
parent | 3b05c8ee4acbcf251e748a2d2b1bad23007dbcbf (diff) | |
download | cpython-16af557ae9c660cbd728546dcb28ec95b0030991.zip cpython-16af557ae9c660cbd728546dcb28ec95b0030991.tar.gz cpython-16af557ae9c660cbd728546dcb28ec95b0030991.tar.bz2 |
Remove more out-of-date comments and clarify explanation of visit().
Diffstat (limited to 'Lib/compiler/visitor.py')
-rw-r--r-- | Lib/compiler/visitor.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/compiler/visitor.py b/Lib/compiler/visitor.py index 934159b..52ea90d 100644 --- a/Lib/compiler/visitor.py +++ b/Lib/compiler/visitor.py @@ -26,13 +26,7 @@ class ASTVisitor: the order during a postorder walk, because it is called _after_ the walk has occurred.) The ASTVisitor modifies the visitor argument by adding a visit method to the visitor; this method can - be used to visit a particular child node. - - XXX The interface for controlling the preorder walk needs to be - re-considered. The current interface is convenient for visitors - that mostly let the ASTVisitor do everything. For something like - a code generator, where you want to walk to occur in a specific - order, it's a pain to add "return 1" to the end of each method. + be used to visit a child node of arbitrary type. """ VERBOSE = 0 |