Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ SequenceNode
Class
SequenceNode
example_code/item_057.py:141–146 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
139
140
print(
"Example 10"
)
141
class
SequenceNode(IndexableNode):
142
def
__len__(self):
143
count = 0
144
for
_ in self._traverse():
145
count += 1
146
return
count
147
148
149
print(
"Example 11"
)
Callers
1
item_057.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected