Files
copycat/copycat/codelet.py
Arthur O'Dwyer fd74290d39 Clean up the handling of codelet arguments. NFC.
Just make all argument-passing explicit; which means the coderack
no longer cares about `oldCodelet` (which was being used only to
get the implicit arguments to the new codelet).
2017-04-18 01:12:27 -07:00

10 lines
282 B
Python

class Codelet(object):
def __init__(self, name, urgency, arguments, currentTime):
self.name = name
self.urgency = urgency
self.arguments = arguments
self.birthdate = currentTime
def __repr__(self):
return '<Codelet: %s>' % self.name