Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/core/tests/test_mem_overlap.py:554–555 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
552
self.data = data
553
554
def
__array__(self):
555
return
self.data
556
557
for
cls in [MyArray, MyArray2]:
558
x = np.arange(5)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected