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

Method __array_finalize__

numpy/core/tests/test_indexing.py:720–722  ·  view source on GitHub ↗
(self, old)

Source from the content-addressed store, hash-verified

718 # Array finalize should be called on the filled array.
719 class SubClass(np.ndarray):
720 def __array_finalize__(self, old):
721 self.finalize_status = np.array(self)
722 self.old = old
723
724 s = np.arange(10).view(SubClass)
725 new_s = s[:3]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected