src/orion/core/evc/tree.py
def add_children(self, *nodes):
        """Add children to the current node

        Note that added children will have their parent set to the current node as well.

        .. seealso::
            `orion.core.evc.tree.TreeNode.drop_children`
        """
        for child in nodes:
            if child is not None and not isinstance(child, TreeNode):
                raise TypeError("Cannot add %s to children" % str(child))

            if child not in self._children:
                # TreeNode.set_parent uses add_children so using it here could cause an infinit
                # recursion. add_children() gets the dirty job done.
                child.drop_parent()
                # pylint: disable=protected-access
                child._parent = self
                self._children.append(child)
Add children to the current node

        Note that added children will have their parent set to the current node as well.

        .. seealso::
            `orion.core.evc.tree.TreeNode.drop_children`
        
Add children to the current node
Note that added children will have their parent set to the current node as well.


Add children to the current node Note that added children will have their parent set to the current node as well .
def add_children(self, *nodes):
        for child in nodes:
            if child is not None and not isinstance(child, TreeNode):
                raise TypeError("Cannot add %s to children" % str(child))
            if child not in self._children:
                child.drop_parent()
                child._parent = self
                self._children.append(child)
def add_children ( self , * nodes ) : for child in nodes : if child is not None and not isinstance ( child , TreeNode ) : raise TypeError ( "Cannot add %s to children" % str ( child ) ) if child not in self . _children : child . drop_parent ( ) child . _parent = self self . _children . append ( child )
Add children to the current node
Note that added children will have their parent set to the current node as well.
Add children to the current node Note that added children will have their parent set to the current node as well .
"""Add children to the current node

        Note that added children will have their parent set to the current node as well.

        .. seealso::
            `orion.core.evc.tree.TreeNode.drop_children`
        """ # TreeNode.set_parent uses add_children so using it here could cause an infinit # recursion. add_children() gets the dirty job done. # pylint: disable=protected-access
self