Searched refs:ExitStack (Results 1 – 25 of 29) sorted by relevance
12
4 from contextlib import ExitStack28 self.resources = ExitStack()67 self.resources = ExitStack()
47 self.fixtures = contextlib.ExitStack()173 self.fixtures = contextlib.ExitStack()
354 .. class:: ExitStack()363 with ExitStack() as stack:432 Transfers the callback stack to a fresh :class:`ExitStack` instance440 with ExitStack() as stack:459 to :class:`ExitStack`, that supports combining both synchronous and505 The primary use case for :class:`ExitStack` is the one given in the class512 with ExitStack() as stack:520 As shown, :class:`ExitStack` also makes it quite easy to use :keyword:`with`531 method. By using :class:`ExitStack` the steps in the context management534 stack = ExitStack()[all …]
5 from contextlib import ExitStack21 stack = ExitStack()
4 from contextlib import ExitStack289 with ExitStack() as cleanup:
13 from contextlib import ExitStack1495 with ExitStack() as resources:
930 exit_stack = ExitStack
350 with contextlib.ExitStack() as stack:
21 from contextlib import ExitStack1759 self.resources = ExitStack()
1585 with contextlib.ExitStack() as cleanup:
2486 with contextlib.ExitStack() as stack:2840 self.fixtures = contextlib.ExitStack()
45 with contextlib.ExitStack() as stack:
456 class ExitStack(_BaseExitStack, AbstractContextManager): class
1210 with contextlib.ExitStack() as stack:
363 with contextlib.ExitStack() as context_stack:
101 with contextlib.ExitStack() as cm:
70 self._exit_stack = contextlib.ExitStack()
244 contextlib.ExitStack() and one of the exit stack generators catches and
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:
1314 with contextlib.ExitStack() as exit_stack:1500 self._exit_stack = contextlib.ExitStack()
780 with contextlib.ExitStack() as stack:
1154 return contextlib.ExitStack()