Pipelines in Python
Generators (PEP 255 “Simple Generators”) and Coroutines (PEP 342 “Coroutines via Enhanced Generators”) are the cleanest way I’ve come across so far to implement the concept of a “pipeline” in Python. First approximation A pipeline is made of: a Producer, that generates data; many Stages, that receive data from the previous stage and send it to [...]
Tagged coroutine, generator, pipeline, python