<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 13, 2013 at 7:10 AM, Serhiy Storchaka <span dir="ltr"><<a href="mailto:storchaka@gmail.com" target="_blank">storchaka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 13.02.13 10:52, Larry Hastings wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've always hated the "".join(array) idiom for "fast" string<br>
concatenation--it's ugly and it flies in the face of TOOWTDI.  I think<br>
everyone should use "x = a + b + c + d" for string concatenation, and we<br>
should just make that fast.<br>
</blockquote>
<br></div>
I prefer "x = '%s%s%s%s' % (a, b, c, d)" when string's number is more than 3 and some of them are literal strings.<br></blockquote><div><br></div><div>Fixed: x = ('%s' *  len(abcd)) % abcd<br>
</div></div></div></div>