Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __getitem__
Method
__getitem__
numpy/core/tests/test_multiarray.py:599–599 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
597
598
class
bad_sequence:
599
def
__getitem__(self):
pass
600
def
__len__(self):
raise
RuntimeError
601
602
assert_raises(ValueError, operator.setitem, u, 0, [])
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected