Home
last modified time | relevance | path

Searched refs:ExitStack (Results 1 – 25 of 29) sorted by relevance

12

/third_party/python/Lib/test/test_importlib/
Dtest_zip.py4 from contextlib import ExitStack
32 self.resources = ExitStack()
71 self.resources = ExitStack()
Dfixtures.py51 self.fixtures = contextlib.ExitStack()
235 self.fixtures = contextlib.ExitStack()
/third_party/python/Doc/library/
Dcontextlib.rst473 .. class:: ExitStack()
482 with ExitStack() as stack:
551 Transfers the callback stack to a fresh :class:`ExitStack` instance
559 with ExitStack() as stack:
578 to :class:`ExitStack`, that supports combining both synchronous and
624 The primary use case for :class:`ExitStack` is the one given in the class
631 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 management
653 stack = ExitStack()
[all …]
/third_party/mindspore/mindspore/train/callback/
D_callback.py17 from contextlib import ExitStack
187 callbacks, self._stack = [], ExitStack().__enter__()
/third_party/python/Lib/test/
Dtest_code_module.py5 from contextlib import ExitStack
22 stack = ExitStack()
Dtest_readline.py4 from contextlib import ExitStack
314 with ExitStack() as cleanup:
Dtest_pdb.py14 from contextlib import ExitStack, redirect_stdout
1633 with ExitStack() as resources:
Dtest_contextlib.py970 exit_stack = ExitStack
Dtest_tracemalloc.py370 with contextlib.ExitStack() as stack:
Dtest_builtin.py22 from contextlib import ExitStack
1882 self.resources = ExitStack()
Dtest_nntplib.py1603 with contextlib.ExitStack() as cleanup:
Dtest_zipfile.py2488 with contextlib.ExitStack() as stack:
2856 self.fixtures = contextlib.ExitStack()
/third_party/python/Lib/
Dgetpass.py45 with contextlib.ExitStack() as stack:
Dcontextlib.py519 class ExitStack(_BaseExitStack, AbstractContextManager): class
Dsubprocess.py1229 with contextlib.ExitStack() as stack:
/third_party/python/Lib/distutils/tests/
Dtest_sysconfig.py104 with contextlib.ExitStack() as cm:
/third_party/python/Misc/NEWS.d/
D3.6.0a3.rst244 contextlib.ExitStack() and one of the exit stack generators catches and
D3.10.1.rst815 Fix an edge case of :class:`ExitStack` and :class:`AsyncExitStack` exception
D3.7.0a3.rst432 simpler and faster alternative to ExitStack() when handling optional context
D3.5.3rc1.rst1402 contextlib.ExitStack() and one of the exit stack generators catches and
D3.8.0a1.rst1787 An ExitStack is now used internally within subprocess.Popen to clean up pipe
5143 ``contextlib.ExitStack`` and ``contextlib.AsyncExitStack`` now use a method
/third_party/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py77 with contextlib.ExitStack() as stack:
1391 with contextlib.ExitStack() as stack:
/third_party/python/Lib/unittest/
Dmock.py1346 with contextlib.ExitStack() as exit_stack:
1544 self._exit_stack = contextlib.ExitStack()
/third_party/python/Lib/xml/etree/
DElementTree.py780 with contextlib.ExitStack() as stack:
/third_party/python/Lib/unittest/test/
Dtest_case.py1161 return contextlib.ExitStack()

12