[Python-Dev] ''.join in 1.6

Gerrit Holl gerrit@nl.linux.org
Wed, 19 Jan 2000 21:14:27 +0100


Hello,

I have a question/suggestion about ''.join in Python 1.6.

Suppose I have this list:
l = ["This", "is", "a", "test"]

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?

regards,
Gerrit.

-- 
Please correct any bad English you encounter in my email message!
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK-----