Searched refs:ExitStack (Results 1 – 17 of 17) sorted by relevance
474 cm_docstring = ExitStack.__doc__475 obj = ExitStack()479 with ExitStack():495 with ExitStack() as stack:529 with ExitStack() as stack:555 with ExitStack() as stack:567 with ExitStack() as stack:578 with ExitStack() as stack:591 with ExitStack() as stack:596 with ExitStack() as stack:[all …]
5 from contextlib import ExitStack21 stack = ExitStack()
4 from contextlib import ExitStack221 with ExitStack() as cleanup:
305 with contextlib.ExitStack() as stack:
1531 with contextlib.ExitStack() as cleanup:
1899 with contextlib.ExitStack() as stack:
14 from contextlib import ExitStack
1078 self.stack = contextlib.ExitStack()
273 .. class:: ExitStack()282 with ExitStack() as stack:351 Transfers the callback stack to a fresh :class:`ExitStack` instance359 with ExitStack() as stack:386 The primary use case for :class:`ExitStack` is the one given in the class393 with ExitStack() as stack:401 As shown, :class:`ExitStack` also makes it quite easy to use :keyword:`with`409 In the specific case of a single optional context manager, :class:`ExitStack`418 return ExitStack()430 method. By using :class:`ExitStack` the steps in the context management[all …]
45 with contextlib.ExitStack() as stack:
259 class ExitStack(AbstractContextManager): class
111 with contextlib2.ExitStack() as stack:
807 with contextlib.ExitStack() as stack:
1131 return contextlib.ExitStack()
1039 :class:`~contextlib.ExitStack` now provides a solid foundation for
1794 by a contextlib.ExitStack() and one of the exit stack generators3939 by a contextlib.ExitStack() and one of the exit stack generators
2639 - Issue #20317: ExitStack.__exit__ could create a self-referential loop if an3837 - Issue #19092: contextlib.ExitStack now correctly reraises exceptions7357 - Issue #14969: Better handling of exception chaining in contextlib.ExitStack7359 - Issue #14963: Convert contextlib.ExitStack.__exit__ to use an iterative7425 in contextlib.ExitStack (Initial patch by Alon Horev)7554 - Issue #13585: Added contextlib.ExitStack