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

Class Seq2

Lib/test/test_operator.py:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return other * self.lst
30
31class Seq2(object):
32 def __init__(self, lst):
33 self.lst = lst
34 def __len__(self):
35 return len(self.lst)
36 def __getitem__(self, i):
37 return self.lst[i]
38 def __add__(self, other):
39 return self.lst + other.lst
40 def __mul__(self, other):
41 return self.lst * other
42 def __rmul__(self, other):
43 return other * self.lst
44
45class BadIterable:
46 def __iter__(self):

Callers 1

test_concatMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_concatMethod · 0.68