def tail(target_file, target):
    '''Mimic Unix tail -f
    This is the source of the pipeline
    a pipeline must have a source.
    '''
    # Moves to the end of file
    target_file.seek(0, 2)
    try:
        while True:
            line = target_file.readline()
            if line:
                target.send(line)
            else:
                time.sleep(0.1)
                continue
    except StopIteration:
        print "Pipeline Ended"
Mimic Unix tail -f
    This is the source of the pipeline
    a pipeline must have a source.
    
recipes/Python/578265_Pipeline_made_of_coroutines/recipe-578265.py