Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ mylist
Class
mylist
numpy/core/tests/test_array_coercion.py:599–602 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
597
# List to coerce, `mylist` will append to it during coercion
598
obj = []
599
class
mylist(list):
600
def
__len__(self):
601
obj.append([1, 2])
602
return
super().__len__()
603
604
obj.append(mylist([1, 2]))
605
Callers
2
test_growing_list
Method · 0.85
test_mutated_list
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_growing_list
Method · 0.68
test_mutated_list
Method · 0.68