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).
10 lines
282 B
Python
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
|