Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __getitem__
Method
__getitem__
numpy/core/tests/test_arrayprint.py:47–49 ·
view source on GitHub ↗
(self, ind)
Source
from the content-addressed store, hash-verified
45
return
obj
46
47
def
__getitem__(self, ind):
48
ret = super().__getitem__(ind)
49
return
sub(ret)
50
51
# test that object + subclass is OK:
52
x = sub([None, None])
Callers
1
__getitem__
Method · 0.45
Calls
1
sub
Class · 0.70
Tested by
no test coverage detected