MCPcopy Create free account
hub / github.com/ActiveState/code / _constructor

Method _constructor

recipes/Python/440656_List_mixin/recipe-440656.py:235–236  ·  view source on GitHub ↗
(self, iterable)

Source from the content-addressed store, hash-verified

233 self.L = list(L)
234
235 def _constructor(self, iterable):
236 return TestList(iterable)
237
238 def __len__(self):
239 return len(self.L)

Callers 6

__getitem__Method · 0.45
__add__Method · 0.45
__mul__Method · 0.45
__radd__Method · 0.45
__copy__Method · 0.45
__deepcopy__Method · 0.45

Calls 1

TestListClass · 0.85

Tested by

no test coverage detected