[Python-Dev] Re: [Python-Dev] Re: [Python-Dev] String methods... finally
Guido van Rossum
guido at CNRI.Reston.VA.US
Tue Jun 15 14:39:09 CEST 1999
> 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
The same should happen as for L"foo" + " " + L"bar".
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list