Searched refs:ExitStack (Results 1 – 25 of 29) sorted by relevance
12
4 from contextlib import ExitStack32 self.resources = ExitStack()71 self.resources = ExitStack()
51 self.fixtures = contextlib.ExitStack()235 self.fixtures = contextlib.ExitStack()
473 .. class:: ExitStack()482 with ExitStack() as stack:551 Transfers the callback stack to a fresh :class:`ExitStack` instance559 with ExitStack() as stack:578 to :class:`ExitStack`, that supports combining both synchronous and624 The primary use case for :class:`ExitStack` is the one given in the class631 with ExitStack() as stack:639 As shown, :class:`ExitStack` also makes it quite easy to use :keyword:`with`650 method. By using :class:`ExitStack` the steps in the context management653 stack = ExitStack()[all …]
17 from contextlib import ExitStack187 callbacks, self._stack = [], ExitStack().__enter__()
5 from contextlib import ExitStack22 stack = ExitStack()
4 from contextlib import ExitStack314 with ExitStack() as cleanup:
14 from contextlib import ExitStack, redirect_stdout1633 with ExitStack() as resources:
970 exit_stack = ExitStack
370 with contextlib.ExitStack() as stack:
22 from contextlib import ExitStack1882 self.resources = ExitStack()
1603 with contextlib.ExitStack() as cleanup:
2488 with contextlib.ExitStack() as stack:2856 self.fixtures = contextlib.ExitStack()
45 with contextlib.ExitStack() as stack:
519 class ExitStack(_BaseExitStack, AbstractContextManager): class
1229 with contextlib.ExitStack() as stack:
104 with contextlib.ExitStack() as cm:
244 contextlib.ExitStack() and one of the exit stack generators catches and
815 Fix an edge case of :class:`ExitStack` and :class:`AsyncExitStack` exception
432 simpler and faster alternative to ExitStack() when handling optional context
1402 contextlib.ExitStack() and one of the exit stack generators catches and
1787 An ExitStack is now used internally within subprocess.Popen to clean up pipe5143 ``contextlib.ExitStack`` and ``contextlib.AsyncExitStack`` now use a method
77 with contextlib.ExitStack() as stack:1391 with contextlib.ExitStack() as stack:
1346 with contextlib.ExitStack() as exit_stack:1544 self._exit_stack = contextlib.ExitStack()
780 with contextlib.ExitStack() as stack:
1161 return contextlib.ExitStack()