Home
last modified time | relevance | path

Searched refs:__anext__ (Results 1 – 25 of 30) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_asyncgen.py114 an = g.__anext__()
162 an = ai.__anext__()
172 an = ai.__anext__()
200 an = ai.__anext__()
211 ai.__anext__().__next__()
309 gen().__anext__().send(100)
431 self.assertEqual(await it.__anext__(), 1)
432 self.assertEqual(await it.__anext__(), 2)
433 self.assertEqual(await it.__anext__(), 3)
434 self.assertEqual(await it.__anext__(), 4)
[all …]
Dtest_coroutines.py1489 async def __anext__(self): member in CoroutineTest.test_for_1.AsyncIter
1589 def __anext__(self): member in CoroutineTest.test_for_4.I
1626 async def __anext__(self): member in CoroutineTest.test_for_6.Iterable
1735 def __anext__(self): member in CoroutineTest.test_for_11.F
1758 async def __anext__(self): member in CoroutineTest.test_for_tuple.AIter
1781 async def __anext__(self): member in CoroutineTest.test_for_stop_iteration.AIter
Dtest_collections.py911 async def __anext__(self): member in TestOneTrickPonyABCs.test_AsyncIterator.AI
922 async def __anext__(self): member in TestOneTrickPonyABCs.test_AsyncIterator.AnextOnly
1205 def __anext__(self): return None member in TestOneTrickPonyABCs.test_AsyncGenerator.NonAGen1
1211 def __anext__(self): return None member in TestOneTrickPonyABCs.test_AsyncGenerator.NonAGen2
1229 async def __anext__(self): return None member in TestOneTrickPonyABCs.test_AsyncGenerator.Gen
1263 self.assertIs(run_async(mgen.asend(None)), run_async(mgen.__anext__()))
Dtest_sys_settrace.py537 async def __anext__(self): member in TraceTestCase.test_20_async_for_loop.AsyncIteratorWrapper
Dtest_grammar.py1859 async def __anext__(self): member in GrammarTests.test_async_for.AIter
/external/python/jinja/src/jinja2/
Dasyncsupport.py40 yield loop.run_until_complete(async_gen.__anext__())
214 self._after = await self._iterator.__anext__()
236 async def __anext__(self): member in AsyncLoopContext
241 rv = await self._iterator.__anext__()
Dasyncfilters.py70 return await auto_aiter(seq).__anext__()
/external/libchrome/third_party/jinja2/
Dasyncsupport.py48 yield loop.run_until_complete(async_gen.__anext__())
219 async def __anext__(self): member in AsyncLoopContextIterator
227 ctx._after = await ctx._async_iterator.__anext__()
252 after = await async_iterator.__anext__()
Dasyncfilters.py64 return await auto_aiter(seq).__anext__()
/external/python/cpython3/Doc/library/
Dcollections.abc.rst95 :class:`AsyncIterator` :class:`AsyncIterable` ``__anext__`` ``__aiter__``
96 …nerator` :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``, ``__anext__``
235 ABC for classes that provide ``__aiter__`` and ``__anext__``
Dexceptions.rst388 Must be raised by :meth:`__anext__` method of an
Ddis.rst594 Implements ``PUSH(get_awaitable(TOS.__anext__()))``. See ``GET_AWAITABLE``
Dunittest.mock.rst2031 * Asynchronous iteration methods: ``__aiter__`` and ``__anext__``
2037 Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and ``__anext__``.
/external/python/cpython3/Lib/
Dcontextlib.py175 return await self.gen.__anext__()
182 await self.gen.__anext__()
D_collections_abc.py184 async def __anext__(self): member in AsyncIterator
202 async def __anext__(self): member in AsyncGenerator
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py519 self.assertIsInstance(m_mock.__anext__, AsyncMock)
673 async def __anext__(self): pass member in AsyncIteratorTest.WithAsyncIterator
692 self.assertTrue(iscoroutinefunction(instance.__anext__))
693 self.assertTrue(iscoroutinefunction(mock_instance.__anext__))
/external/python/cpython3/Lib/asyncio/
Dstreams.py737 async def __anext__(self): member in StreamReader
/external/python/cpython3/Doc/
Dglossary.rst114 :meth:`__anext__` method returns an awaitable object which will execute
121 resumes with another awaitable returned by :meth:`__anext__`, it
130 An object that implements the :meth:`__aiter__` and :meth:`__anext__`
131 methods. ``__anext__`` must return an :term:`awaitable` object.
133 iterator's :meth:`__anext__` method until it raises a
/external/python/cpython3/Doc/reference/
Dcompound_stmts.rst824 TARGET = await type(iter).__anext__(iter)
832 See also :meth:`__aiter__` and :meth:`__anext__` for details.
Dexpressions.rst642 :meth:`~agen.__anext__` is used then the result is :const:`None`. Otherwise, if
681 .. coroutinemethod:: agen.__anext__()
685 asynchronous generator function is resumed with an :meth:`~agen.__anext__`
Ddatamodel.rst678 Calling the asynchronous iterator's :meth:`aiterator.__anext__` method
2731 its ``__anext__`` method.
2739 .. method:: object.__anext__(self)
2753 async def __anext__(self):
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst8 __aiter__ and __anext__.
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst200 …:`~PyAsyncMethods.am_anext` | :c:type:`unaryfunc` | __anext__ |
2325 Must return an :term:`awaitable` object. See :meth:`__anext__` for details.
2336 Must return an :term:`awaitable` object. See :meth:`__anext__` for details.
/external/python/cpython3/Lib/unittest/
Dmock.py2886 async def __anext__(self): member in _AsyncIterator
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_base_events.py950 item = await ai.__anext__()

12