MCPcopy Index your code
hub / github.com/RustPython/RustPython / X

Class X

Lib/test/test_itertools.py:2103–2112  ·  view source on GitHub ↗

Missing __getitem__ and __iter__

Source from the content-addressed store, hash-verified

2101 yield val
2102
2103class X:
2104 'Missing __getitem__ and __iter__'
2105 def __init__(self, seqn):
2106 self.seqn = seqn
2107 self.i = 0
2108 def __next__(self):
2109 if self.i >= len(self.seqn): raise StopIteration
2110 v = self.seqn[self.i]
2111 self.i += 1
2112 return v
2113
2114class N:
2115 '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