Re: newbie question: convert a list to one string

2005-08-25 Thread Sion Arrowsmith
<[EMAIL PROTECTED]> wrote: >I'm searching for the fastest way to convert a list to one big string. The join() method of strings. The string instance in question being the separator you want, so: " ".join(test) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I ha

Re: newbie question: convert a list to one string

2005-08-25 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > H! > > I'm searching for the fastest way to convert a list to one big string. > > For example: > test = ['test','test2','test3'] '-'.join(test) -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Stewardesses is the longest w

Re: newbie question: convert a list to one string

2005-08-25 Thread martijn
Thanks that's what i need. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question: convert a list to one string

2005-08-25 Thread Robert Kern
[EMAIL PROTECTED] wrote: > H! > > I'm searching for the fastest way to convert a list to one big string. > > For example: > test = ['test','test2','test3'] > > print unlist(test) > >>test test2 test3 (string) > > > > I know I can make a loop like below but is that the fastest/best option > ?

newbie question: convert a list to one string

2005-08-25 Thread martijn
H! I'm searching for the fastest way to convert a list to one big string. For example: test = ['test','test2','test3'] print unlist(test) > test test2 test3 (string) I know I can make a loop like below but is that the fastest/best option ? def unlist(test): output='' for v in test: output