osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature suggestions: "Using declarations" i.e. context managers ("with" blocks) tied to scope/lifetime of the variable rather than to nesting


On 19/02/2019 05.15, mnl.post at gmail.com wrote:
> This becomes more ugly if multiple withs get nested.
> 

This is what contextlib.ExitStack is for.