Searched refs:anext (Results 1 – 7 of 7) sorted by relevance
412 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): argument421 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 …]
490 anextawaitableobject *anext = PyObject_GC_New( in PyAnextAwaitable_New() local492 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()
199 return await anext(self.gen)206 await anext(self.gen)
727 Add builtins.aiter and builtins.anext. Patch by Joshua Bronson (@jab),
418 Fixed a bug where ``anext(ait, default)`` would erroneously return None.
18 | | :func:`anext` | | **F** | | **M** | | …85 .. awaitablefunction:: anext(async_iterator[, default])
840 * Two new builtin functions -- :func:`aiter` and :func:`anext` have been added