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

Method __array_finalize__

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

Source from the content-addressed store, hash-verified

354 def test_nonbaseclass_values(self):
355 class SubClass(np.ndarray):
356 def __array_finalize__(self, old):
357 # Have array finalize do funny things
358 self.fill(99)
359
360 a = np.zeros((5, 5))
361 s = a.copy().view(type=SubClass)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected