Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/core/tests/test_regression.py:2206–2207 ·
view source on GitHub ↗
(self, *args, **kwargs)
Source
from the content-addressed store, hash-verified
2204
__array_priority__ = 1002
2205
2206
def
__array__(self, *args, **kwargs):
2207
raise
Exception()
2208
2209
rhs = Foo()
2210
lhs = np.array(1)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected