_ wrote: > (I did google for this, I promise) > > How do I get python NOT to insert newlines into string representations > of lists when I do something like this: > > strCollector += "%s" % (['a', 'list', 'with', 'lots', 'of', 'elements'] > * 100)
It shouldn't and doesn't insert newlines. ###### >>> strCollector = "%s" % (['a', 'list', 'with', 'lots', 'of', 'elements'] * >>> 100) >>> strCollector.split("\n")[0] == strCollector True ###### mt -- http://mail.python.org/mailman/listinfo/python-list