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

Class X

Lib/test/test_itertools.py:2151–2160  ·  view source on GitHub ↗

Missing __getitem__ and __iter__

Source from the content-addressed store, hash-verified

2149 yield val
2150
2151class X:
2152 'Missing __getitem__ and __iter__'
2153 def __init__(self, seqn):
2154 self.seqn = seqn
2155 self.i = 0
2156 def __next__(self):
2157 if self.i >= len(self.seqn): raise StopIteration
2158 v = self.seqn[self.i]
2159 self.i += 1
2160 return v
2161
2162class N:
2163 'Iterator missing __next__()'

Callers 15

test_accumulateMethod · 0.70
test_batchedMethod · 0.70
test_chainMethod · 0.70
test_compressMethod · 0.70
test_productMethod · 0.70
test_cycleMethod · 0.70
test_groupbyMethod · 0.70
test_filterMethod · 0.70
test_filterfalseMethod · 0.70
test_zipMethod · 0.70
test_ziplongestMethod · 0.70
test_mapMethod · 0.70

Calls

no outgoing calls

Tested by 15

test_accumulateMethod · 0.56
test_batchedMethod · 0.56
test_chainMethod · 0.56
test_compressMethod · 0.56
test_productMethod · 0.56
test_cycleMethod · 0.56
test_groupbyMethod · 0.56
test_filterMethod · 0.56
test_filterfalseMethod · 0.56
test_zipMethod · 0.56
test_ziplongestMethod · 0.56
test_mapMethod · 0.56