Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 212 Bytes
class Event(object):
# keep a (static) class variable to keep track of total events
count = 0
def __init__(self, time):
self.time = time
self.id = Event.count
Event.count += 1