A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-December/106780.html below:

[Python-Dev] A grammatical oddity: trailing commas in argument lists -- continuation

[Python-Dev] A grammatical oddity: trailing commas in argument lists -- continuation [Python-Dev] A grammatical oddity: trailing commas in argument lists -- continuationGuido van Rossum guido at python.org
Mon Dec 13 17:54:16 CET 2010
On Mon, Dec 13, 2010 at 5:42 AM, Tres Seaver <tseaver at palladion.com> wrote:
> I actually make use of the feature when dealing with APIs which both a)
> take lots of arguments (more than fit comfortably on two lines at
> whatever indentation they are called), and b) have optional trailing
> arguments:  I always leave the trailing comma in place in such cases,
> with the closing paren on the following line, so that adding or removing
> an argument at the end of the list stays consistent (the diffs are
> better, too, when I use this pattern).

Same here, and it's a soft style rule at Google that trailing commas
are good -- they can help produce shorter diffs. I'm at least +0 on
allowing trailing commas in the situation the OP mentioned.

-- 
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4