Home
last modified time | relevance | path

Searched refs:nullcontext (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_with.py10 from contextlib import _GeneratorContextManager, contextmanager, nullcontext
645 with nullcontext(range(1, 5)) as (a, *b, c):
Dtest_contextlib.py308 with nullcontext(c) as c_in:
Dtest_concurrent_futures.py1113 cm = contextlib.nullcontext()
/external/python/cpython3/Lib/
Dcontextlib.py658 class nullcontext(AbstractContextManager): class
Dast.py29 from contextlib import contextmanager, nullcontext
756 return nullcontext()
/external/python/cpython3/Doc/library/
Dcontextlib.rst159 .. function:: nullcontext(enter_result=None)
171 cm = contextlib.nullcontext()
183 cm = nullcontext(file_or_path)
/external/python/dateutil/dateutil/tz/
Dtz.py1820 from contextmanager import nullcontext as _nullcontext
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a3.rst431 Added *nullcontext* no-op context manager to contextlib. This provides a
/external/python/cpython3/Doc/whatsnew/
D3.7.rst828 The new :func:`~contextlib.nullcontext` is a simpler and faster no-op