Subject: New option python-indent-parens-as-block

From: Peter Oliver <[email-masked]>
Date: Mon, 20 May 2013 16:02:01 +0100 (BST)

The Python style guide, http://www.python.org/dev/peps/pep-0008/, says:

> The closing brace/bracket/parenthesis on multi-line constructs may
> either line up under the last item of the list, as in:
> 
> my_list = [
>     1, 2, 3,
>     4, 5, 6,
>     ]
> result = some_function_that_takes_arguments(
>     'a', 'b', 'c',
>     'd', 'e', 'f',
>     )
> 
> or it may be lined up under the first character of the line that
> starts the multi-line construct, as in:
> 
> my_list = [
>     1, 2, 3,
>     4, 5, 6,
> ]
> result = some_function_that_takes_arguments(
>     'a', 'b', 'c',
>     'd', 'e', 'f',
> )

At present, Emacs uses the former style.  I'd prefer there to be an option to enable use of the latter style.

I am preparing a patch.

-- 
Peter Oliver