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

Method __new__

numpy/core/tests/test_umath.py:3016–3017  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

3014 __array_priority__ = 10
3015
3016 def __new__(cls):
3017 return np.asarray(1).view(cls).copy()
3018
3019 def __array_wrap__(self, arr, context):
3020 return arr.view(type(self))

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected