|
|
|
|
|
by giancarlostoro
518 days ago
|
|
Lowkey I hate the "\" line continuation in Python to force PEP-8 compliance in a way... Is there any Pythonistas who would write the examples in there differently to achieve a similar level of readability? > pipeline = task(get_data, branch=True) \ > | task(step1, workers=20) \ > | task(step2, workers=20) \ > | task(step3, workers=20, multiprocess=True) |
|
you could reassign every line, but it would look nicer with chained functions.
edit:I would be tempted to do something like this: