[Python-checkins] python/dist/src/Lib/compiler visitor.py,1.10,1.11

jhylton@sourceforge.net jhylton@sourceforge.net
Thu, 18 Apr 2002 09:26:43 -0700


Update of /cvsroot/python/python/dist/src/Lib/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv3214

Modified Files:
	visitor.py 
Log Message:
Remove more out-of-date comments and clarify explanation of visit().


Index: visitor.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/visitor.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** visitor.py	18 Apr 2002 16:02:48 -0000	1.10
--- visitor.py	18 Apr 2002 16:26:40 -0000	1.11
***************
*** 27,37 ****
      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.
      """
  
--- 27,31 ----
      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 child node of arbitrary type.
      """