<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 12 July 2013 22:57, Sergey <span dir="ltr"><<a href="mailto:sergemp@mail.ru" target="_blank">sergemp@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":2ex" style="overflow:hidden">That's what Alex Martelli, author of sum(), initially did [1]:<br>
> for the simple reason that I special-case this -- when the first<br>
> item is a PyBaseString_Type, I delegate to ''.join<br>
<br>
So you can, kind of, say that sum was DESIGNED to have special cases<br>
from the very beginning.</div></blockquote></div><br>Thanks for the reference. That's the *original* implementation. So why does the current sum() not do this? You need to locate the justification for the removal of this special case, and explain why that reason no longer applies.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>My recollection (yes, I was round for those original discussions!) is that the key point is that "Guido said no". If I'm right, have you persuaded Guido to change his mind? To my knowledge he's not commented in this thread.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Paul</div></div>