#NEWLINE# def preorder( self , tree , visitor , * args ) : #NEWLINE# #INDENT# 'Do preorder walk of tree using visitor' #NEWLINE# self . visitor = visitor #NEWLINE# visitor . visit = self . dispatch #NEWLINE# self . dispatch ( tree , * args )