<p dir="ltr">Tim,</p>
<p dir="ltr">Doesn't work for the first column in SQL, but we tend to put the comma and a space before the column name. It makes it easier to move things around and (debateably) more readable. It is also very obvious when you have missed a comma this way.</p>
<p dir="ltr">- Nick</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, 3 Sep 2015 16:14 Tim Chase <<a href="mailto:python.list@tim.thechases.com">python.list@tim.thechases.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-09-03 14:48, Peter Otten wrote:<br>
> The only reason I see to add an extra comma are smaller and easier<br>
> to read diffs when you make a change:<br>
<br>
While that's the primary reason I do it, it's also helpful if you<br>
have a bunch of named keyword arguments and want sort/rearrange them<br>
(usually for clarity/grouping). You don't have to worry about finding<br>
the previous-last-item and adding a comma to it and then finding the<br>
new-last-item and removing its comma.  Also, when adding a new<br>
item, you can just copy an existing line, paste it, and modify the<br>
salient parts without needing to append a comma to one line or<br>
delete it from the pasted line.<br>
<br>
But the improvement in diff output?  That's a big win for me.<br>
<br>
I notice it most when I *can't* use it, like in writing SQL:<br>
<br>
  SELECT<br>
    col1,<br>
    col2,<br>
    col3, -- grr, can't do this<br>
  FROM tblExample<br>
<br>
so my SQL diffs are the "removed this line and replaced it with<br>
something almost identical except it now has a comma".  Harumph.<br>
<br>
-tkc<br>
<br>
<br>
--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div dir="ltr"> - Nick</div>