MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __len__

Method __len__

Solutions/2_5/readrides.py:99–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 self.numrides = []
98
99 def __len__(self):
100 # All lists assumed to have the same length
101 return len(self.routes)
102
103 def append(self, d):
104 self.routes.append(d['route'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected