[Python-Dev] Multiline with statement line continuation

Armin Rigo arigo at tunes.org
Tue Aug 12 18:57:39 CEST 2014


On 12 August 2014 01:08, Allen Li <cyberdupo56 at gmail.com> wrote:
>     with (open('foo') as foo,
>           open('bar') as bar,
>           open('baz') as baz,
>           open('spam') as spam,
>           open('eggs') as eggs):
>         pass

+1.  It's exactly the same grammar extension as for "from import"
statements, for the same reason.


More information about the Python-Dev mailing list