<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 May 2013 20:16, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net" target="_blank">solipsis@pitrou.net</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 Fri, 10 May 2013 11:48:51 -0700<br>
Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br>
> I just spent a few minutes staring at a bug caused by a missing comma<br>
> -- I got a mysterious argument count error because instead of foo('a',<br>
> 'b') I had written foo('a' 'b').<br>
><br>
> This is a fairly common mistake, and IIRC at Google we even had a lint<br>
> rule against this (there was also a Python dialect used for some<br>
> specific purpose where this was explicitly forbidden).<br>
><br>
> Now, with modern compiler technology, we can (and in fact do) evaluate<br>
> compile-time string literal concatenation with the '+' operator, so<br>
> there's really no reason to support 'a' 'b' any more. (The reason was<br>
> always rather flimsy; I copied it from C but the reason why it's<br>
> needed there doesn't really apply to Python, as it is mostly useful<br>
> inside macros.)<br>
><br>
> Would it be reasonable to start deprecating this and eventually remove<br>
> it from the language?<br>
<br>
</div>I'm rather -1. It's quite convenient and I don't want to add some '+'<br>
signs everywhere I use it. I'm sure many people also have long string<br>
literals out there and will have to endure the pain of a dull task to<br>
"fix" their code.<br>
<br>
However, in your case, foo('a' 'b') could raise a SyntaxWarning, since<br>
the "continuation" is on the same line.<br>
<br></blockquote><div><br></div><div><br></div><div style>I'm with Antoine. I love using implicit concatenation for splitting long literals across multiple lines.</div><div style><br></div><div style>Michael</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Antoine.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><pre cols="72"><a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br><br>May you do good and not evil<br>May you find forgiveness for yourself and forgive others<br>
May you share freely, never taking more than you give.<br>-- the sqlite blessing <a href="http://www.sqlite.org/different.html" target="_blank">http://www.sqlite.org/different.html</a></pre>

</div></div>