bug in string.join()?
Thorsten Horstmann
thorsten at mats.gmd.de
Wed Feb 21 15:17:22 EST 2001
"Fernando Rodríguez" wrote:
> >>> string.join(("abcde"))
> 'a b c d e'
>
> Is this the expected behavior, or is it a bug? O:-)
it's the expected behavior.
string.join concatenate all sequence types. So it iterates
over all characters in the string and joins them with the
default separator ' '.
It's not a bug - it's a feature! ;-)
-Thorsten
--
Anybody else on the list got an opinion?
Should I change the language or not? (Guido van Rossum, 28 Dec 1991)
from http://www.amk.ca/quotations/python-quotes/page-1.html
More information about the Python-list
mailing list