diff options
Diffstat (limited to 'tree.py')
-rw-r--r-- | tree.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -268,7 +268,9 @@ class ListNode(VNode, list_class): """add a node to children""" child = list_class.pop(self, index) child.parent = None - + + def __iter__(self): + return list_class.__iter__(self) # construct list from tree #################################################### |