Skip to content

Instantly share code, notes, and snippets.

@sloria
Created June 30, 2013 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sloria/5895686 to your computer and use it in GitHub Desktop.
Save sloria/5895686 to your computer and use it in GitHub Desktop.
class TaskSender:
def __init__(self, task, job obligation):
self.task = task
self.job = job
self.obligation = obligation
self.processed = []
self.copied = []
self.executed = []
def __call__(self):
self.prepare()
self.process()
self.execute()
...
@matematikaadit
Copy link

just small correction: put a comma after job

    def __init__(self, task, job, obligation):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment