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

Method __init__

Solutions/2_2/readrides.py:47–51  ·  view source on GitHub ↗
(self, route, date, daytype, rides)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected