On Jan 31, 9:30 pm, Terran Melconian <[EMAIL PROTECTED]> wrote: > > I want to be able to accumulate a string with +=, not by going > through an intermediate list and then doing ''.join(), because I > think the latter is ugly.
As others have observed, you can build a string using += instead of ''.join(), but += runs in quadratic time so it's not terribly efficient if you're building strings out of a lot of elements, or if the number of elements is arbitrary. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list