def detach_children(self):
for node in self.get_child_nodes():<EOL><INDENT>node.set_parent(None)<EOL><DEDENT>self._nodes = dict()<EOL>
Erase references to children without deleting them.

These children might be used somewhere else, otherwise they will be taken care by ``Python``'s garbage collector.