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

Class SequenceClass

Lib/test/test_iter.py:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 return self
57
58class SequenceClass:
59 def __init__(self, n):
60 self.n = n
61 def __getitem__(self, i):
62 if 0 <= i < self.n:
63 return i
64 else:
65 raise IndexError
66
67class SequenceProxyClass:
68 def __init__(self, s):

Callers 12

test_seq_class_forMethod · 0.70
test_seq_class_iterMethod · 0.70
test_builtin_listMethod · 0.70
test_builtin_tupleMethod · 0.70
test_builtin_filterMethod · 0.70
test_builtin_max_minMethod · 0.70
test_builtin_mapMethod · 0.70
test_builtin_zipMethod · 0.70
test_in_and_not_inMethod · 0.70

Calls

no outgoing calls

Tested by 12

test_seq_class_forMethod · 0.56
test_seq_class_iterMethod · 0.56
test_builtin_listMethod · 0.56
test_builtin_tupleMethod · 0.56
test_builtin_filterMethod · 0.56
test_builtin_max_minMethod · 0.56
test_builtin_mapMethod · 0.56
test_builtin_zipMethod · 0.56
test_in_and_not_inMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…