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

Method __array_prepare__

numpy/core/tests/test_umath.py:4690–4691  ·  view source on GitHub ↗
(self, obj, context=None)

Source from the content-addressed store, hash-verified

4688 self.shape = self.shape[::-1]
4689
4690 def __array_prepare__(self, obj, context=None):
4691 return obj
4692
4693 for cls in [BadArr1, BadArr2]:
4694 arr = np.ones((2, 3)).view(cls)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected