Home
last modified time | relevance | path

Searched refs:__await__ (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_coroutines.py18 def __await__(self): member in AsyncYieldFrom
26 def __await__(self): member in AsyncYield
46 aw = coro.__await__()
679 aw = coro.__await__()
689 aw = coro.__await__()
701 self.assertIn('__iter__', dir(coro.__await__()))
702 self.assertIn('coroutine_wrapper', repr(coro.__await__()))
819 await_iter = coro.__await__()
972 def __await__(self): member in CoroutineTest.test_await_5.Awaitable
985 def __await__(self): member in CoroutineTest.test_await_6.Awaitable
[all …]
Dtest_types.py1357 def __await__(self): member in CoroutineTests.test_non_gen_values.Awaitable
1395 def __await__(self): return self member in CoroutineTests.test_duck_coro.CoroLike
1402 self.assertIs(foo().__await__(), coro)
1409 def __await__(self): return self member in CoroutineTests.test_duck_corogen.CoroGenLike
1418 self.assertIs(foo().__await__(), coro)
1441 self.assertIs(wrapper.__await__(), wrapper)
1585 self.assertIs(wrapper.__await__(), gen)
1606 self.assertIs(foo().__await__(), gen)
Dtest_collections.py614 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.Bar
622 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.MinimalCoro
664 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.Bar
672 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.MinimalCoro
702 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
712 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
Dtest_inspect.py201 def __await__(): member in TestPredicates.test_isawaitable.Future
208 not_fut.__await__ = lambda: None
/external/python/cpython3/Doc/library/
Dcollections.abc.rst92 :class:`Awaitable` ``__await__``
185 expressions. Custom implementations must provide the :meth:`__await__`
194 *awaitables*, even though they do not have an :meth:`__await__` method.
206 :meth:`__await__`. All :class:`Coroutine` instances are also instances of
212 *awaitables*, even though they do not have an :meth:`__await__` method.
Dtypes.rst365 the :meth:`__await__` method.
Ddis.rst560 ``o.__await__``.
/external/python/cpython3/Lib/asyncio/
Dcoroutines.py81 def __await__(self): member in CoroWrapper
127 await_meth = res.__await__
Dlocks.py84 def __await__(self): member in _ContextManagerMixin
89 return self.__acquire_ctx().__await__()
Dfutures.py257 def __await__(self): member in Future
265 __iter__ = __await__ # make compatible with 'yield from'.
Dtasks.py603 return (yield from awaitable.__await__())
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py25 def __await__(self): member in FakeCoro
126 def __await__(self): member in CoroutineTests.test_function_returning_awaitable.Awaitable
Dtest_futures.py186 fut.__await__()
Dtest_tasks.py77 def __await__(self): member in CoroLikeObject
219 def __await__(self): member in BaseTaskTests.test_ensure_future_awaitable.Aw
Dtest_events.py70 def __await__(self): member in CoroLike
1840 it = self.loop.run_in_executor(None, func).__await__()
/external/python/cpython3/Lib/
Dtypes.py235 __await__ = __iter__ variable in _GeneratorWrapper
D_collections_abc.py104 def __await__(self): member in Awaitable
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst333 NotImplementedError. Task._step() and Future.__await__() raise proper
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2554 An :term:`awaitable` object generally implements an :meth:`__await__` method.
2562 are also awaitable, but they do not implement :meth:`__await__`.
2564 .. method:: object.__await__(self)
2581 A coroutine's execution can be controlled by calling :meth:`__await__` and
2600 :meth:`__await__`. If *value* is not ``None``, this method delegates
2604 iterating over the :meth:`__await__` return value, described above.
2613 when iterating over the :meth:`__await__` return value, described
/external/python/cpython3/Doc/
Dglossary.rst139 a :term:`coroutine` or an object with an :meth:`__await__` method.
/external/python/cpython3/Objects/
Dtypeobject.c6678 _Py_IDENTIFIER(__await__); in slot_am_await()
/external/python/cpython3/Doc/whatsnew/
D3.5.rst184 defining the :meth:`__await__` method.