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

Class X

Lib/test/test_set.py:1768–1777  ·  view source on GitHub ↗

Missing __getitem__ and __iter__

Source from the content-addressed store, hash-verified

1766 yield val
1767
1768class X:
1769 'Missing __getitem__ and __iter__'
1770 def __init__(self, seqn):
1771 self.seqn = seqn
1772 self.i = 0
1773 def __next__(self):
1774 if self.i >= len(self.seqn): raise StopIteration
1775 v = self.seqn[self.i]
1776 self.i += 1
1777 return v
1778
1779class N:
1780 'Iterator missing __next__()'

Callers 7

test_constructorMethod · 0.70
test_inline_methodsMethod · 0.70
test_inplace_methodsMethod · 0.70
test_merge_and_mutateMethod · 0.70
__eq__Method · 0.70

Calls

no outgoing calls

Tested by 7

test_constructorMethod · 0.56
test_inline_methodsMethod · 0.56
test_inplace_methodsMethod · 0.56
test_merge_and_mutateMethod · 0.56
__eq__Method · 0.56