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

Class CallableIterClass

Lib/test/test_iter.py:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 raise ZeroDivisionError
88
89class CallableIterClass:
90 def __init__(self):
91 self.i = 0
92 def __call__(self):
93 i = self.i
94 self.i = i + 1
95 if i > 100:
96 raise IndexError # Emergency stop
97 return i
98
99class EmptyIterClass:
100 def __len__(self):

Callers 1

test_iter_callableMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_iter_callableMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…