/external/python/cpython3/Lib/test/ |
D | test_contextlib_async.py | 34 self.assertIs(await manager.__aenter__(), manager) 70 async def __aenter__(self): member in TestAbstractAsyncContextManager.test_structural_subclassing.ManagerFromScratch 84 __aenter__ = None variable in TestAbstractAsyncContextManager.test_structural_subclassing.NoneAenter 134 await ctx.__aenter__() 147 await ctx.__aenter__() 159 await ctx.__aenter__() 168 await ctx.__aenter__() 182 await ctx.__aenter__() 309 return self.run_coroutine(self.__aenter__()) 379 async def __aenter__(self): member in TestAsyncExitStack.test_async_push.ExitCM [all …]
|
D | test_coroutines.py | 1166 async def __aenter__(self): member in CoroutineTest.test_with_1.Manager 1203 def __aenter__(self): member in CoroutineTest.test_with_2.CM 1248 async def __aenter__(self): member in CoroutineTest.test_with_5.CM 1263 def __aenter__(self): member in CoroutineTest.test_with_6.CM 1282 async def __aenter__(self): member in CoroutineTest.test_with_7.CM 1310 async def __aenter__(self): member in CoroutineTest.test_with_8.CM 1374 async def __aenter__(self): member in CoroutineTest.test_with_9.CM 1394 async def __aenter__(self): member in CoroutineTest.test_with_10.CM 1420 async def __aenter__(self): member in CoroutineTest.test_with_11.CM 1442 async def __aenter__(self): member in CoroutineTest.test_with_12.CM [all …]
|
D | test_sys_settrace.py | 30 async def __aenter__(self): member in asynctracecontext
|
D | test_grammar.py | 1880 async def __aenter__(self): member in GrammarTests.test_async_with.manager
|
/external/python/cpython3/Lib/ |
D | contextlib.py | 43 async def __aenter__(self): member in AbstractAsyncContextManager 173 async def __aenter__(self): member in _AsyncGeneratorContextManager 556 result = await _cm_type.__aenter__(cm) 601 async def __aenter__(self): member in AsyncExitStack
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testasync.py | 517 self.assertIsInstance(m_mock.__aenter__, AsyncMock) 546 self.assertIsInstance(m_mock.__aenter__, AsyncMock) 549 self.assertTrue(iscoroutinefunction(m_mock.__aenter__)) 555 async def __aenter__(self, *args, **kwargs): pass member in AsyncContextManagerTest.WithAsyncContextManager 581 cm.__aenter__.return_value = response 604 self.assertTrue(cm_mock.__aenter__.called) 606 cm_mock.__aenter__.assert_awaited() 621 mock_instance.__aenter__.return_value = expected_result 644 mock_instance.__aenter__ = enter_coroutine
|
D | testmagicmethods.py | 289 self.assertTrue(iscoroutinefunction(mock.__aenter__)) 290 self.assertIsInstance(mock.__aenter__, AsyncMock) 315 self.assertTrue(iscoroutinefunction(mock.__aenter__)) 316 self.assertIsInstance(mock.__aenter__, AsyncMock)
|
/external/python/cpython3/Lib/asyncio/ |
D | locks.py | 13 async def __aenter__(self): member in _ContextManagerMixin
|
D | events.py | 196 async def __aenter__(self): member in AbstractServer
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0b4.rst | 59 Improved error messages in 'async with' when ``__aenter__()`` or
|
D | 3.6.6rc1.rst | 74 Improved error messages in 'async with' when ``__aenter__()`` or
|
D | 3.9.0a3.rst | 91 ``async with`` statements by looking up the :meth:`__aenter__` special
|
D | 3.8.0a1.rst | 1419 Improved error messages in 'async with' when ``__aenter__()`` or
|
/external/python/cpython3/Doc/library/ |
D | contextlib.rst | 35 :meth:`object.__aenter__` and :meth:`object.__aexit__`. A default 36 implementation for :meth:`object.__aenter__` is provided which returns 107 without needing to create a class or separate :meth:`__aenter__` and
|
D | unittest.mock-examples.rst | 301 :ref:`async-context-managers` through ``__aenter__`` and ``__aexit__``. 302 By default, ``__aenter__`` and ``__aexit__`` are ``AsyncMock`` instances that 306 ... async def __aenter__(self): 317 >>> mock_instance.__aenter__.assert_awaited_once()
|
D | dis.rst | 613 Resolves ``__aenter__`` and ``__aexit__`` from the object on top of the 614 stack. Pushes ``__aexit__`` and result of ``__aenter__()`` to the stack.
|
D | unittest.mock.rst | 2019 * Context manager: ``__enter__``, ``__exit__``, ``__aenter__`` and ``__aexit__`` 2037 Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and ``__anext__``.
|
/external/python/cpython3/Doc/reference/ |
D | compound_stmts.rst | 858 aenter = type(manager).__aenter__ 874 See also :meth:`__aenter__` and :meth:`__aexit__` for details.
|
D | datamodel.rst | 2777 suspend execution in its ``__aenter__`` and ``__aexit__`` methods. 2781 .. method:: object.__aenter__(self) 2794 async def __aenter__(self):
|
/external/python/cpython3/Doc/ |
D | glossary.rst | 93 :keyword:`async with` statement by defining :meth:`__aenter__` and
|
/external/python/cpython3/Tools/c-analyzer/ |
D | TODO | 512 Python/ceval.c:_PyEval_EvalFrameDefault():PyId___aenter__ _Py_IDENTIFIER(__aenter__)
|
D | known.tsv | 1013 Python/ceval.c _PyEval_EvalFrameDefault PyId___aenter__ variable _Py_IDENTIFIER(__aenter__)
|
/external/python/cpython3/Python/ |
D | ceval.c | 3337 _Py_IDENTIFIER(__aenter__); in _PyEval_EvalFrameDefault()
|