MCPcopy 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
140print("Example 10")
141class SequenceNode(IndexableNode):
142 def __len__(self):
143 count = 0
144 for _ in self._traverse():
145 count += 1
146 return count
147
148
149print("Example 11")

Callers 1

item_057.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected