MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / remove_child

Method remove_child

pythonwhat/probe.py:136–139  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

134 self.updated = True
135
136 def remove_child(self, node):
137 index = self.child_list.index(node)
138 del self.child_list[index]
139 return index
140
141 def add_child(self, child):
142 # since it is a tree, there is only one parent

Callers 2

wrapperFunction · 0.80
add_childMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected