Lines Matching defs:__anext__
59 coroutines machinery to C-implementation of __anext__() and send()
64 __anext__ = type(iterator).__anext__
69 return __anext__(iterator)
78 return await __anext__(iterator)
152 an = g.__anext__()
200 an = ai.__anext__()
210 an = ai.__anext__()
238 an = ai.__anext__()
249 ai.__anext__().__next__()
347 gen().__anext__().send(100)
483 async def __anext__(self):
500 def __anext__(self):
572 def __anext__(self):
598 def __anext__(self):
607 def __anext__(self):
620 def __anext__(self):
818 self.assertEqual(await it.__anext__(), 1)
819 self.assertEqual(await it.__anext__(), 2)
820 self.assertEqual(await it.__anext__(), 3)
821 self.assertEqual(await it.__anext__(), 4)
823 await it.__anext__()
825 await it.__anext__()
830 self.assertEqual(await it.__anext__(), 1)
831 self.assertEqual(await it.__anext__(), 2)
833 it.__anext__().throw(ZeroDivisionError)
838 self.assertEqual(await it.__anext__(), 4)
840 await it.__anext__()
855 it.__anext__().send(None)
862 it.__anext__().send(10)
869 it.__anext__().send(12)
876 await it.__anext__()
925 self.assertEqual(await it.__anext__(), (1,))
927 it.__anext__().throw(ZeroDivisionError)
930 await it.__anext__()
944 v = await it.__anext__()
948 it.__anext__().throw(ZeroDivisionError)
953 await it.__anext__()
969 await it.__anext__()
994 await it.__anext__()
1021 self.assertEqual(await it.__anext__(), 1)
1046 await g.__anext__()
1047 await g.__anext__()
1147 await it.__anext__()
1605 nxt = it.__anext__()
1609 r"cannot reuse already awaited __anext__\(\)/asend\(\)"