<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>RE: [Python-Dev] Optimized string concatenation</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>[Armin Rigo]</FONT>
</P>
<P><FONT SIZE=2>#- s = ''</FONT>
<BR><FONT SIZE=2>#- for x in y:</FONT>
<BR><FONT SIZE=2>#- s += some_string(x)</FONT>
<BR><FONT SIZE=2>#- </FONT>
<BR><FONT SIZE=2>#- This leaves open the policy questions:</FONT>
<BR><FONT SIZE=2>#- </FONT>
<BR><FONT SIZE=2>#- * first, is that an implementation detail or a published feature?</FONT>
</P>
<P><FONT SIZE=2>Depending on how much slower (if still) is now this idiom against...</FONT>
</P>
<P><FONT SIZE=2> l = [some_string(x) for x in y]</FONT>
<BR><FONT SIZE=2> s = ''.join(l)</FONT>
</P>
<P><FONT SIZE=2>...maybe we should stop concatenating strings. One or two points of the FAQs should be reviewed, but only after a speed comparison.</FONT></P>
<P><FONT SIZE=2>. Facundo</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><B><FONT SIZE=2>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .</FONT></B></P>
<P><B><U><FONT SIZE=2>ADVERTENCIA </FONT></U> </B>
</P>
<P><B><FONT SIZE=2>La información contenida en este mensaje y cualquier archivo anexo al mismo, son para uso exclusivo del destinatario y pueden contener información confidencial o propietaria, cuya divulgación es sancionada por la ley. </FONT></B></P>
<P><B><FONT SIZE=2>Si Ud. No es uno de los destinatarios consignados o la persona responsable de hacer llegar este mensaje a los destinatarios consignados, no está autorizado a divulgar, copiar, distribuir o retener información (o parte de ella) contenida en este mensaje. Por favor notifíquenos respondiendo al remitente, borre el mensaje original y borre las copias (impresas o grabadas en cualquier medio magnético) que pueda haber realizado del mismo. </FONT></B></P>
<P><B><FONT SIZE=2>Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones Personales S.A. o alguna empresa asociada. </FONT></B></P>
<P><B><FONT SIZE=2>Los mensajes electrónicos pueden ser alterados, motivo por el cual Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación cualquiera sea el resultante de este mensaje. </FONT></B></P>
<P><B><FONT SIZE=2>Muchas Gracias.</FONT></B>
</P>
</BODY>
</HTML>