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

Method __new__

numpy/core/tests/test_regression.py:1733–1736  ·  view source on GitHub ↗
(cls,
                        input_array)

Source from the content-addressed store, hash-verified

1731 class OldSqueeze(np.ndarray):
1732
1733 def __new__(cls,
1734 input_array):
1735 obj = np.asarray(input_array).view(cls)
1736 return obj
1737
1738 # it is perfectly reasonable that prior
1739 # to numpy version 1.7.0 a subclass of ndarray

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected