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/106876.html below:

trailing commas in argument lists -- continuation

[Python-Dev] A grammatical oddity: trailing commas in argument lists -- continuationGeorg Brandl g.brandl at gmx.net
Sat Dec 18 22:04:02 CET 2010
Am 13.12.2010 21:08, schrieb Glenn Linderman:
> On 12/13/2010 11:39 AM, Mark Dickinson wrote:
>> my_thing = Thing(
>>      foo = Foo(arg1, arg2, ...),
>>      bar = Bar(arg3, arg4, ...),
>>      ...
>> )
>>
>> and I've found the trailing comma very convenient during refactoring
>> and API experimentation.  (There's still good fun to be had arguing
>> about the indentation of that closing parenthesis, though.)
> 
> 
> Clearly it needs to be indented one level, because it is a continuation 
> of the prior line, just like the foo and bar and ... lines are 
> continuations and therefore indented.

Clearly Emacs is superior to Vim because (insert some random fact here).

Clearly the only thing that is clear about coding style details (even if
we all more or less agree on PEP 8) is that it is a matter of personal
taste.

Georg

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