Home
last modified time | relevance | path

Searched refs:__await__ (Results 1 - 18 of 18) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_coroutines.py20 def __await__(self): member in AsyncYieldFrom
28 def __await__(self): member in AsyncYield
54 aw = coro.__await__()
526 self.assertFalse(hasattr(gen, '__await__'))
699 aw = coro.__await__()
709 aw = coro.__await__()
720 self.assertIn('__await__', dir(coro))
721 self.assertIn('__iter__', dir(coro.__await__()))
722 self.assertIn('coroutine_wrapper', repr(coro.__await__()))
839 await_iter = coro.__await__()
992 def __await__(self): global() member in CoroutineTest.test_await_5.Awaitable
1005 def __await__(self): global() member in CoroutineTest.test_await_6.Awaitable
1015 def __await__(self): global() member in CoroutineTest.test_await_7.Awaitable
1090 def __await__(self): global() member in CoroutineTest.test_await_12.Awaitable
1104 def __await__(self): global() member in CoroutineTest.test_await_13.Awaitable
1121 def __await__(self): global() member in CoroutineTest.test_await_14.Wrapper
1125 def __await__(self): global() member in CoroutineTest.test_await_14.FutureLike
1764 def __await__(self): global() member in CoroutineTest.test_for_11.F
[all...]
H A Dtest_asyncgen.py456 with contextlib.closing(obj.__await__()) as g:
567 def __await__(self): member in AsyncGenAsyncioTest.test_anext_bad_await.bad_awaitable.BadAwaitable
574 regex = r"__await__.*iterator"
614 def __await__(self): member in AsyncGenAsyncioTest.test_anext_await_raises.RaisingAwaitable
651 with contextlib.closing(anext(agen, "default").__await__()) as g:
664 with contextlib.closing(anext(agen, "default").__await__()) as g:
672 with contextlib.closing(anext(agen, "default").__await__()) as g:
693 with contextlib.closing(anext(agen, "default").__await__()) as g:
713 with contextlib.closing(anext(agen, "default").__await__()) as g:
729 with contextlib.closing(anext(agen, "default").__await__()) a
[all...]
H A Dtest_types.py1849 def __await__(self): member in CoroutineTests.test_non_gen_values.Awaitable
1887 def __await__(self): return self member in CoroutineTests.test_duck_coro.CoroLike
1894 self.assertIs(foo().__await__(), coro)
1901 def __await__(self): return self member in CoroutineTests.test_duck_corogen.CoroGenLike
1910 self.assertIs(foo().__await__(), coro)
1933 self.assertIs(wrapper.__await__(), wrapper)
2077 self.assertIs(wrapper.__await__(), gen)
2098 self.assertIs(foo().__await__(), gen)
2142 '__await__', '__iter__', '__next__', 'cr_code', 'cr_running',
H A Dtest_collections.py794 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.Bar
802 def __await__(self): member in TestOneTrickPonyABCs.test_Awaitable.MinimalCoro
805 self.validate_abstract_methods(Awaitable, '__await__')
819 # flag don't have '__await__' method, hence can't be instances
846 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.Bar
854 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.MinimalCoro
857 self.validate_abstract_methods(Coroutine, '__await__', 'send', 'throw')
871 # flag don't have '__await__' method, hence can't be instances
886 def __await__(self): member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
896 def __await__(sel member in TestOneTrickPonyABCs.test_Coroutine.CoroLike
[all...]
H A Dtest_inspect.py256 def __await__(): member in TestPredicates.test_isawaitable.Future
263 not_fut.__await__ = lambda: None
H A Dtest_typing.py5076 def __await__(self) -> typing.Iterator[T_a]: member in AwaitableWrapper
/third_party/python/Lib/asyncio/
H A Dfutures.py284 def __await__(self): member in Future
292 __iter__ = __await__ # make compatible with 'yield from'.
H A Dtasks.py345 # as `Future.__iter__` and `Future.__await__` don't need it.
681 Wraps awaitable (an object with __await__) into a coroutine
684 return (yield from awaitable.__await__())
/third_party/python/Lib/test/test_asyncio/
H A Dtest_pep492.py28 def __await__(self): member in FakeCoro
H A Dtest_futures.py208 fut.__await__()
H A Dtest_tasks.py83 def __await__(self): member in CoroLikeObject
269 def __await__(self): member in BaseTaskTests.test_ensure_future_awaitable.Aw
270 return self.coro.__await__()
H A Dtest_events.py75 def __await__(self): member in CoroLike
1775 it = self.loop.run_in_executor(None, func).__await__()
/third_party/python/Lib/
H A Dtypes.py245 __await__ = __iter__ variable in _GeneratorWrapper
H A D_collections_abc.py110 def __await__(self): member in Awaitable
116 return _check_methods(C, "__await__")
159 return _check_methods(C, '__await__', 'send', 'throw', 'close')
/third_party/python/Include/internal/
H A Dpycore_global_strings.h74 STRUCT_FOR_ID(__await__)
H A Dpycore_runtime_init.h697 INIT_ID(__await__), \
/third_party/python/Lib/unittest/test/testmock/
H A Dtestasync.py34 def __await__(self): yield member in AwaitableClass
/third_party/python/Objects/
H A Dtypeobject.c7929 func = lookup_maybe_method(self, &_Py_ID(__await__), &unbound); in slot_am_await()
7936 "object %.50s does not have __await__ method", in slot_am_await()
8093 AMSLOT("__await__", am_await, slot_am_await, wrap_unaryfunc,
8094 "__await__($self, /)\n--\n\nReturn an iterator to be used in await expression."),

Completed in 52 milliseconds