def printer():
    '''Display the line
    This is the end-point(sink) of the pipeline.
    '''
    try:
        while True:
            line = (yield)
            print line,
    except GeneratorExit:
        print 'Printer Pipeline Ended'
Display the line
    This is the end-point(sink) of the pipeline.
    
recipes/Python/578265_Pipeline_made_of_coroutines/recipe-578265.py