(self)
| 220 | self.lastSearchDepth = 0 |
| 221 | |
| 222 | def __iter__(self): |
| 223 | stack = [self.root] |
| 224 | while len(stack): |
| 225 | node = stack.pop() |
| 226 | yield node |
| 227 | for j in xrange(node.refcnt - 1, -1, -1): |
| 228 | stack.append(node.getLink(j)) |
| 229 | |
| 230 | def __str__(self): |
| 231 | """ String representation of a tree (parentheses form) """ |