MCPcopy Create free account
hub / github.com/numpy/numpy / __array_wrap__

Method __array_wrap__

numpy/core/tests/test_umath.py:3121–3122  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

3119
3120 class Bad(np.ndarray):
3121 def __array_wrap__(self, obj):
3122 raise RuntimeError
3123
3124 ok = np.empty(1).view(Ok)
3125 bad = np.empty(1).view(Bad)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected