def combine_funcs(obj, funcs):
 out = (x(obj) for x in funcs)
 return ('<ul>%s</ul>' % ''.join((('<li>%s</li>' % x) for x in out if x)))

def combine_funcs ( obj , funcs ) : out = ( x ( obj ) for x in funcs ) return ( '<ul>%s</ul>' % '' . join ( ( ( '<li>%s</li>' % x ) for x in out if x ) ) )
combine several field functions into one block of lines .