MCPcopy
hub / github.com/dabeaz-course/python-mastery / append

Method append

Solutions/2_5/readrides.py:103–107  ·  view source on GitHub ↗
(self, d)

Source from the content-addressed store, hash-verified

101 return len(self.routes)
102
103 def append(self, d):
104 self.routes.append(d['route'])
105 self.dates.append(d['date'])
106 self.daytypes.append(d['daytype'])
107 self.numrides.append(d['rides'])
108
109 def __getitem__(self, index):
110 return { 'route': self.routes[index],

Callers 15

read_rides_as_dictsFunction · 0.95
read_historyFunction · 0.80
add_dataMethod · 0.80
registerMethod · 0.80
wrapperFunction · 0.80
convert_csvFunction · 0.80
validate_attributesFunction · 0.80
wrapperFunction · 0.80
validate_attributesFunction · 0.80
wrapperFunction · 0.80
wrapperFunction · 0.80
convert_csvFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected