(object, convert, join=joinseq)
Recursively walk a sequence, stringifying each element.
Recursively walk a sequence, stringifying each element.
Recursively walk a sequence stringifying each element .
def strseq(object, convert, join=joinseq):
    """Recursively walk a sequence, stringifying each element."""
    if type(object) in [types.ListType, types.TupleType]:
        return join(map(lambda o, c=convert, j=join: strseq(o, c, j), object))
    else:
        return convert(object)
def strseq ( object , convert , join = joinseq ) : if type ( object ) in [ types . ListType , types . TupleType ] : return join ( map ( lambda o , c = convert , j = join : strseq ( o , c , j ) , object ) ) else : return convert ( object )