Home
last modified time | relevance | path

Searched refs:anext (Results 1 – 7 of 7) sorted by relevance

/third_party/python/Lib/test/
Dtest_asyncgen.py412 with self.subTest(anext="pure-Python"):
414 with self.subTest(anext="builtin"):
415 self._check_async_iterator_anext(ait_class, anext)
417 def _check_async_iterator_anext(self, ait_class, anext): argument
421 results.append(await anext(g))
422 results.append(await anext(g))
423 results.append(await anext(g, 'buckle my shoe'))
432 self.assertEqual(await anext(g1), 1)
433 self.assertEqual(await anext(g1), 2)
435 await anext(g1)
[all …]
/third_party/python/Objects/
Diterobject.c490 anextawaitableobject *anext = PyObject_GC_New( in PyAnextAwaitable_New() local
492 if (anext == NULL) { in PyAnextAwaitable_New()
496 anext->wrapped = awaitable; in PyAnextAwaitable_New()
498 anext->default_value = default_value; in PyAnextAwaitable_New()
499 _PyObject_GC_TRACK(anext); in PyAnextAwaitable_New()
500 return (PyObject *)anext; in PyAnextAwaitable_New()
/third_party/python/Lib/
Dcontextlib.py199 return await anext(self.gen)
206 await anext(self.gen)
/third_party/python/Misc/NEWS.d/
D3.10.0a7.rst727 Add builtins.aiter and builtins.anext. Patch by Joshua Bronson (@jab),
D3.10.0b1.rst418 Fixed a bug where ``anext(ait, default)`` would erroneously return None.
/third_party/python/Doc/library/
Dfunctions.rst18 | | :func:`anext` | | **F** | | **M** | | …
85 .. awaitablefunction:: anext(async_iterator[, default])
/third_party/python/Doc/whatsnew/
D3.10.rst840 * Two new builtin functions -- :func:`aiter` and :func:`anext` have been added