![](https://secure.gravatar.com/avatar/01aa7d6d4db83982a2f6dd363d0ee0f3.jpg?s=120&d=mm&r=g)
April 26, 2016
11:22 a.m.
On Apr 25, 2016, at 12:36 PM, Cory Benfield wrote:
This request has come up a couple of times before. ... The upshot is: the restriction on context managers with parentheses like this is relatively likely to stick around.
I highly recommend looking at contextlib.ExitStack. Once I started using this idiom, I found I wanted the requested with-feature much less frequently. Cheers, -Barry