Home
last modified time | relevance | path

Searched refs:enter_result (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Lib/
Dcontextlib.py732 def __init__(self, enter_result=None): argument
733 self.enter_result = enter_result
736 return self.enter_result
742 return self.enter_result
/third_party/python/Lib/test/
Dtest_contextlib.py1002 with self.redirect_stream(f) as enter_result:
1003 self.assertIs(enter_result, f)
1052 with suppress(ValueError) as enter_result:
1053 self.assertIsNone(enter_result)
/third_party/python/Doc/library/
Dcontextlib.rst219 .. function:: nullcontext(enter_result=None)
221 Return a context manager that returns *enter_result* from ``__enter__``, but
235 An example using *enter_result*::