Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ add_child
Method
add_child
src/4/delegating-iteration/example.py:11–12 ·
view source on GitHub ↗
(self, node)
Source
from the content-addressed store, hash-verified
9
return
'Node({!r})'
.format(self._value)
10
11
def
add_child(self, node):
12
self._children.append(node)
13
14
def
__iter__(self):
15
return
iter(self._children)
Callers
1
example.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected