replace_child method

replace_child(node, child)

Replaces the child node old child with new child in the list of children, and returns the old child node.

Returns

def replace_child(self, node, child):
    ...
ParameterTypeDescription
nodeNodeThe new node.
childNodeThe old child.

See Also