Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_contextlib.py474 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 …]
Dtest_code_module.py5 from contextlib import ExitStack
21 stack = ExitStack()
Dtest_readline.py4 from contextlib import ExitStack
221 with ExitStack() as cleanup:
Dtest_tracemalloc.py305 with contextlib.ExitStack() as stack:
Dtest_nntplib.py1531 with contextlib.ExitStack() as cleanup:
Dtest_zipfile.py1899 with contextlib.ExitStack() as stack:
Dtest_shutil.py14 from contextlib import ExitStack
Dtest_os.py1078 self.stack = contextlib.ExitStack()
/external/python/cpython3/Doc/library/
Dcontextlib.rst273 .. class:: ExitStack()
282 with ExitStack() as stack:
351 Transfers the callback stack to a fresh :class:`ExitStack` instance
359 with ExitStack() as stack:
386 The primary use case for :class:`ExitStack` is the one given in the class
393 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 …]
/external/python/cpython3/Lib/
Dgetpass.py45 with contextlib.ExitStack() as stack:
Dcontextlib.py259 class ExitStack(AbstractContextManager): class
/external/autotest/client/cros/networking/
Dandroid_xmlrpc_server.py111 with contextlib2.ExitStack() as stack:
/external/python/cpython3/Lib/xml/etree/
DElementTree.py807 with contextlib.ExitStack() as stack:
/external/python/cpython3/Lib/unittest/test/
Dtest_case.py1131 return contextlib.ExitStack()
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1039 :class:`~contextlib.ExitStack` now provides a solid foundation for
/external/python/cpython3/Misc/
DNEWS1794 by a contextlib.ExitStack() and one of the exit stack generators
3939 by a contextlib.ExitStack() and one of the exit stack generators
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