[Python-Dev] Re: [Python-Dev] String methods... finally
fredrik at pythonware.com
Tue Jun 15 09:10:28 CEST 1999
> wink> + string.join(seq) doesn't currently convert seq elements to
> wink> string type, and in my vision it would. At least three of
> wink> us admit to mapping str across seq anyway before calling
> wink> string.join, and I think it would be a nice convenience:
hmm. consider the following:
space = " "
foo = L"foo"
bar = L"bar"
result = space.join((foo, bar))
what should happen if you run this:
a) Python raises an exception
b) result is an ordinary string object
c) result is a unicode string object
More information about the Python-Dev