changeset 471 | 9dc392f05c65 |
parent 441 | 49e4717e2371 |
child 692 | 800592b8d39b |
child 959 | ffe5e1631081 |
470:5d4a9db36738 | 471:9dc392f05c65 |
---|---|
143 |
143 |
144 def __iter__(self): |
144 def __iter__(self): |
145 return self.iterchildren() |
145 return self.iterchildren() |
146 |
146 |
147 def is_leaf(self): |
147 def is_leaf(self): |
148 print '*' * 80 |
|
149 return len(self.children()) == 0 |
148 return len(self.children()) == 0 |
150 |
149 |
151 def is_root(self): |
150 def is_root(self): |
152 return self.parent() is None |
151 return self.parent() is None |
153 |
152 |