[Python-ideas] Allow parentheses to be used with "with" block
mistersheik at gmail.com
Sun Feb 15 22:52:42 CET 2015
It's great that multiple context managers can be sent to "with":
with a as b, c as d, e as f:
If the context mangers have a lot of text it's very hard to comply with
PEP8 without resorting to "\" continuations, which are proscribed by the
Google style guide.
Other statements like import and if support enclosing their arguments in
parentheses to force aligned continuations. Can we have the same for
with (a as b,
c as d,
e as f):
This is a pretty minor change to the grammar and parser.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas