[Python-ideas] Allow parentheses to be used with "with" block

Barry Warsaw barry at python.org
Tue Feb 17 03:36:17 CET 2015


On Feb 15, 2015, at 01:52 PM, Neil Girdhar wrote:

>with (a as b,
>         c as d,
>         e as f):
>    suite

I brought this up a few years ago and IIRC, Guido rejected it.  I find that
it's much less of an issue now with Python's contextlib.ExitStack.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150216/aaf2e942/attachment.sig>


More information about the Python-ideas mailing list