<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 10, 2013 at 3:00 PM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>There are plenty of examples where the continuation isn't on the same<br>
line (some were already posted here).</div></blockquote></div><div class="gmail_extra"><br></div>+1</div><div class="gmail_extra"><br>I've never used the feature and don't intent to.</div><div class="gmail_extra">


<br></div><div class="gmail_extra">A related annoyance is the trailing comma at the end of stuff (probably a leftover from a previous edit). For example:</div><div class="gmail_extra"><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">


<div class="gmail_extra">def fun(a, b, c,):</div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Parses fine. But the one that has bitten me is the comma at the end of a line:</div><div class="gmail_extra">


<br></div><div class="gmail_extra"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra">>>> x = 1,</div><div class="gmail_extra">>>> x</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">

<div class="gmail_extra" style>(1,)</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div class="gmail_extra">>>> x == 1, # inconsistency?</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra">(False,)</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">


<div class="gmail_extra">>>> x == (1,)</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra">True</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">


<div class="gmail_extra">>>> y = a_very_long_call(param1, param2, param3), # this trailing comma is difficult to spot</div><div class="gmail_extra"><br></div></blockquote>I'd prefer that the syntax for creating one-tuples requires the parenthesis, and that trailing commas are disallowed.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br><span style="color:rgb(0,102,0)">Juancarlo </span><b style="color:rgb(0,102,0)">AƱez</b>
</div></div>