Executes the visit function on this node and each of its child nodes.
(self, visit=lambda node: None)
| 2656 | next, previous = next_sibling, previous_sibling |
| 2657 | |
| 2658 | def traverse(self, visit=lambda node: None): |
| 2659 | """ Executes the visit function on this node and each of its child nodes. |
| 2660 | """ |
| 2661 | visit(self); [node.traverse(visit) for node in self.children] |
| 2662 | |
| 2663 | def __nonzero__(self): |
| 2664 | return True |
no outgoing calls