On Apr 30, 3:53 pm, Mel <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > def join(iterable, sep=' ', encode=str): > > return sep.join(encode(x) for x in iterable) > > Actually > > return encode(sep).join(encode(x) for x in iterable) > > lest you get TypeErrors for non-string separators.
Well separator is almost always a string literal or at least known to be a string, so that TypeError has never occured to me. George -- http://mail.python.org/mailman/listinfo/python-list