<div dir="ltr">2013/5/10 Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?</blockquote><div><br></div><div style>From my perspective as a Python user (not knowing anything about the</div><div style>ramifications for the required changes to the parser, etc.) it is very reasonable.</div>
<div style>This bug is very hard to spot when it happens, and an argument count error</div><div style>is really one of the more benign forms it can take.</div><div style><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>--Dave Peticolas
</div></div>