Home
last modified time | relevance | path

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

/external/python/cpython3/Doc/library/
Dcontextlib.rst354 .. class:: ExitStack()
363 with ExitStack() as stack:
432 Transfers the callback stack to a fresh :class:`ExitStack` instance
440 with ExitStack() as stack:
459 to :class:`ExitStack`, that supports combining both synchronous and
505 The primary use case for :class:`ExitStack` is the one given in the class
512 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 management
534 stack = ExitStack()
[all …]
/external/python/cpython3/Lib/test/
Dtest_code_module.py5 from contextlib import ExitStack
21 stack = ExitStack()
Dtest_readline.py4 from contextlib import ExitStack
289 with ExitStack() as cleanup:
Dtest_pdb.py12 from contextlib import ExitStack
1339 with ExitStack() as resources:
Dtest_builtin.py20 from contextlib import ExitStack
1530 self.resources = ExitStack()
Dtest_contextlib.py920 exit_stack = ExitStack
Dtest_tracemalloc.py305 with contextlib.ExitStack() as stack:
Dtest_nntplib.py1541 with contextlib.ExitStack() as cleanup:
Dtest_zipfile.py2092 with contextlib.ExitStack() as stack:
D_test_multiprocessing.py4523 with contextlib.ExitStack() as stack:
/external/python/cpython3/Lib/
Dgetpass.py45 with contextlib.ExitStack() as stack:
Dcontextlib.py454 class ExitStack(_BaseExitStack, AbstractContextManager): class
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a3.rst244 contextlib.ExitStack() and one of the exit stack generators catches and
D3.7.0a3.rst435 simpler and faster alternative to ExitStack() when handling optional context
D3.5.3rc1.rst1403 contextlib.ExitStack() and one of the exit stack generators catches and
/external/python/cpython3/Lib/xml/etree/
DElementTree.py808 with contextlib.ExitStack() as stack:
/external/python/cpython3/Lib/unittest/test/
Dtest_case.py1145 return contextlib.ExitStack()
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1039 :class:`~contextlib.ExitStack` now provides a solid foundation for
D3.7.rst824 context manager than :class:`~contextlib.ExitStack`.
/external/python/cpython3/Misc/
DHISTORY2639 - Issue #20317: ExitStack.__exit__ could create a self-referential loop if an
3837 - Issue #19092: contextlib.ExitStack now correctly reraises exceptions
7357 - Issue #14969: Better handling of exception chaining in contextlib.ExitStack
7359 - Issue #14963: Convert contextlib.ExitStack.__exit__ to use an iterative
7425 in contextlib.ExitStack (Initial patch by Alon Horev)
7554 - Issue #13585: Added contextlib.ExitStack