(self)
return parent
close() -> parent

        Close element and return first non-full element.
close() -> parent
close () - > parent
def close(self):
        """close() -> parent

        Close element and return first non-full element."""

        parent = self.parent
        while parent.full():
            parent = parent.parent
        return parent
def close ( self ) : parent = self . parent while parent . full ( ) : parent = parent . parent return parent