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

Class Seq1

Lib/test/test_operator.py:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 fresh=['_operator'])
16
17class Seq1:
18 def __init__(self, lst):
19 self.lst = lst
20 def __len__(self):
21 return len(self.lst)
22 def __getitem__(self, i):
23 return self.lst[i]
24 def __add__(self, other):
25 return self.lst + other.lst
26 def __mul__(self, other):
27 return self.lst * other
28 def __rmul__(self, other):
29 return other * self.lst
30
31class Seq2(object):
32 def __init__(self, lst):

Callers 1

test_concatMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_concatMethod · 0.68