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

Method __array_finalize__

numpy/core/records.py:435–439  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

433 return self
434
435 def __array_finalize__(self, obj):
436 if self.dtype.type is not record and self.dtype.names is not None:
437 # if self.dtype is not np.record, invoke __setattr__ which will
438 # convert it to a record if it is a void dtype.
439 self.dtype = self.dtype
440
441 def __getattribute__(self, attr):
442 # See if ndarray has this attr, and return it if so. (note that this

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected