Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __index__
Method
__index__
numpy/lib/tests/test_io.py:882–883 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
880
# Testing with some crazy custom integer type
881
class
CrazyInt:
882
def
__index__(self):
883
return
1
884
885
crazy_int = CrazyInt()
886
c.seek(0)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected