Recursively destroys the contents of this tree.
(self)
| 907 | text = property(get_text) |
| 908 | |
| 909 | def decompose(self): |
| 910 | """Recursively destroys the contents of this tree.""" |
| 911 | self.extract() |
| 912 | i = self |
| 913 | while i is not None: |
| 914 | next = i.next_element |
| 915 | i.__dict__.clear() |
| 916 | i.contents = [] |
| 917 | i = next |
| 918 | |
| 919 | def clear(self, decompose=False): |
| 920 | """ |