<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 11:06 AM, Stefan Behnel <span dir="ltr"><<a href="mailto:stefan_ml@behnel.de" target="_blank">stefan_ml@behnel.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I don't think sum(strings) is beautiful enough</blockquote>
</div><br>sum(strings) is more beautiful than ''.join(strings) in my view, but unfortunately it does not work even for lists because the initial value defaults to 0.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
sum(strings, '') and ''.join(strings) are equally ugly and non-obvious because they require an empty string.  Empty containers are an advanced concept and it is unfortunate that a simple job of concatenating a list of (non-empty!) strings exposes the user to it.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>