[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 > ? > > def unlist(test): > output='' > for v in test: > output = output+" "+v > return output
' '.join(test) -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list