[Python-Dev] ''.join in 1.6
David Ascher
da@ski.org
Wed, 19 Jan 2000 12:54:03 -0800
Gerrit Holl
> Currently, I would join it this way into a tab-delimeted string:
> s = string.join(l, '\t')
>
> In 1.6, I should do it this way:
> '\t'.join(s)
>
> I think it would be better to have that method on the *list*:
> s.join('\t')
>
> That's more clear, isn't it?
As Tim pointed out when they were discussed, the clearest way to express it
with the new methods is to do:
tab = '\t'
tab.join(s)
Similarly
space = ' '
space.join(s)
etc.
--david ascher