Comment by me-vs-cat
10 months ago
This style looks pretty good to me:
    pipeline = task(...)
    pipeline |= task(...)
So does this style:
    steps = [task(...), task(...)]
    pipeline = functools.reduce(operator.or_, steps)
But it appears you can just change "task" to "Task" and then:
    pipeline = pyper.Pipeline([Task(...), Task(...)])
No comments yet
Contribute on Hacker News ↗