[Python-Dev] ''.join in 1.6

Barry A. Warsaw bwarsaw@cnri.reston.va.us (Barry A. Warsaw)
Wed, 19 Jan 2000 15:36:24 -0500 (EST)


>>>>> "GH" == Gerrit Holl <gerrit.holl@pobox.com> writes:

    GH> I think it would be better to have that method on the *list*:
    GH> s.join('\t')

    GH> That's more clear, isn't it?

Perhaps, but you want join to work on any sequence don't you?  By
making it a method on string objects, you sort of get that for free
(as opposed to putting it on lists, sequences, and requiring all class
authors to add it as well).

-Barry