(self, element)
Replace root element of this tree.

        This will discard the current contents of the tree and replace it
        with the given element.  Use with care!
Replace root element of this tree.
Replace root element of this tree .
def _setroot(self, element):
        """Replace root element of this tree.

        This will discard the current contents of the tree and replace it
        with the given element.  Use with care!

        """
        # assert iselement(element)
        self._root = element
def _setroot ( self , element ) : # assert iselement(element) self . _root = element