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

Method __array_wrap__

numpy/core/tests/test_multiarray.py:9626–9628  ·  view source on GitHub ↗
(self, new)

Source from the content-addressed store, hash-verified

9624 called_wrap = 0
9625
9626 def __array_wrap__(self, new):
9627 type(self).called_wrap += 1
9628 return super().__array_wrap__(new)
9629
9630 numpy_arr = np.zeros(5, dtype=dt1)
9631 my_arr = np.zeros(5, dtype=dt2).view(MyArr)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected