forked from s452716/Test
18 lines
429 B
Python
18 lines
429 B
Python
class Track:
|
|
def __init__(self, priority, road):
|
|
self.priority = priority
|
|
self.road = road
|
|
|
|
def __eq__(self, other):
|
|
try:
|
|
return self.priority == other.priority
|
|
except AttributeError:
|
|
return NotImplemented
|
|
|
|
def __lt__(self, other):
|
|
try:
|
|
return self.priority < other.priority
|
|
except AttributeError:
|
|
return NotImplemented
|
|
|