I think this thread is probably Python-Ideas territory...

On Mon, Aug 11, 2014 at 4:08 PM, Allen Li <cyberdupo56@gmail.com> wrote:
> Currently, this works with explicit line continuation, but as all style
> guides favor implicit line continuation over explicit, it would be nice
> if you could do the following:
>
>     with (open('foo') as foo,
>           open('bar') as bar,
>           open('baz') as baz,
>           open('spam') as spam,
>           open('eggs') as eggs):
>         pass

The parentheses seem unnecessary/redundant/weird. Why not allow
newlines in-between "with" and the terminating ":"?

with open('foo') as foo,
       open('bar') as bar,
       open('baz') as baz:
    pass

That way lies Coffeescript. Too much guessing.
-- 
--Guido van Rossum (python.org/~guido) ">

(original) (raw)

On Tue, Aug 12, 2014 at 3:43 AM, Devin Jeanpierre <jeanpierreda@gmail.com> wrote:
I think this thread is probably Python-Ideas territory...

On Mon, Aug 11, 2014 at 4:08 PM, Allen Li <cyberdupo56@gmail.com> wrote:
\> Currently, this works with explicit line continuation, but as all style
\> guides favor implicit line continuation over explicit, it would be nice
\> if you could do the following:
\>
\> with (open('foo') as foo,
\> open('bar') as bar,
\> open('baz') as baz,
\> open('spam') as spam,
\> open('eggs') as eggs):
\> pass

The parentheses seem unnecessary/redundant/weird. Why not allow
newlines in-between "with" and the terminating ":"?

with open('foo') as foo,
open('bar') as bar,
open('baz') as baz:
pass

That way lies Coffeescript. Too much guessing.

--
--Guido van Rossum (python.org/\~guido)