Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'diff': 0.07; 'modified': 0.07; 'lawrence': 0.09; 'lst': 0.09; 'trailing': 0.09; '-tkc': 0.16; 'cleaner': 0.16; 'comma': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'optional': 0.16; 'readable': 0.16; 'subject:user': 0.16; 'wrote:': 0.18; 'accepted.': 0.22; 'looks': 0.24; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'lines': 0.31; 'lists': 0.32; 'languages': 0.32; 'but': 0.35; 'add': 0.35; 'doing': 0.36; 'useful': 0.36; 'charset:us-ascii': 0.36; 'subject:New': 0.37; 'needed': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'subject: / ': 0.60; 'most': 0.60; 'more': 0.64; 'inline': 0.74; 'received:50.22': 0.84 Date: Sat, 9 Nov 2013 15:20:22 -0600 From: Tim Chase To: python-list@python.org Subject: Re: New user's initial thoughts / criticisms of Python In-Reply-To: References: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Importance: low X-Priority: 4 (Low) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384031931 news.xs4all.nl 15903 [2001:888:2000:d::a6]:46123 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58967 On 2013-11-09 21:01, Mark Lawrence wrote: > no comma is needed but a comma will be accepted. I find the optional trailing comma particularly useful (and painful in languages that don't accept it) for doing inline lists to produce cleaner version-control diffs. I write most of my code like this (with a trailing comma): lst = [ "one", "two", "three", ] so when I go to add something, the diff looks much more readable like "two", "three", + "four", ] instead of "two", - "three" + "three", + "four" ] which makes me look at all of the modified lines to validate exactly what did (and didn't) change. -tkc