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

Method __init__

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

Source from the content-addressed store, hash-verified

90import collections
91class RideData(collections.Sequence):
92 def __init__(self):
93 # Each value is a list with all of the values (a column)
94 self.routes = []
95 self.dates = []
96 self.daytypes = []
97 self.numrides = []
98
99 def __len__(self):
100 # All lists assumed to have the same length

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected