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

Class Row

Solutions/2_2/readrides.py:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 return records
43
44class Row:
45 # Uncomment to see effect of slots
46 # __slots__ = ('route', 'date', 'daytype', 'rides')
47 def __init__(self, route, date, daytype, rides):
48 self.route = route
49 self.date = date
50 self.daytype = daytype
51 self.rides = rides
52
53# Uncomment to use a namedtuple instead
54#from collections import namedtuple

Callers 1

read_rides_as_instancesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected