def putlines( lines, header="", indent="", trailer="", out=sys.stdout ):
    """ kwlines = getfields( "name version".split(), afile )
        putlines( map( itemgetter(1), kwlines ), header=afile )
    """
    if not lines:
        return
    if header:
        print >>out, header
    for line in lines:
        print "%s%s" % (indent, line)
    if trailer:
        print >>out, trailer.rstrip( " " )
 kwlines = getfields( "name version".split(), afile )
        putlines( map( itemgetter(1), kwlines ), header=afile )
    
recipes/Python/576741_uniform_matcher_re_pattern__re__func__dict_/recipe-576741.py