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):
    ...
Parameter Type Description
node Node The new node.
child Node The old child.

See Also