Why " ".some_string is often used ?
Erik Max Francis
max at alcyone.com
Wed Jan 7 07:43:57 EST 2004
"Stéphane Ninin" wrote:
> Is there a reason to do instead of just returning join(text.split()) ?
> why concatenate " " to the string and not just returning the string
> instead ?
Because they're not the same thing unless you've already done
from string import join
first. join is not a builtin function.
--
__ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ I get my kicks above the wasteline, sunshine
-- The American, _Chess_
More information about the Python-list
mailing list