Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
wrapper
Function · 0.80
add_child
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected