MCPcopy Index your code
hub / github.com/python/cpython / Iterable

Class Iterable

Lib/test/test_coroutines.py:1669–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667 I += 100000
1668
1669 class Iterable:
1670 def __init__(self):
1671 self.i = 0
1672
1673 def __aiter__(self):
1674 return self
1675
1676 async def __anext__(self):
1677 if self.i > 10:
1678 raise StopAsyncIteration
1679 self.i += 1
1680 return self.i
1681
1682 ##############
1683

Callers 2

test_for_6Method · 0.70
mainMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_for_6Method · 0.56
mainMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…