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

Method __init__

numpy/core/tests/test_multiarray.py:117–119  ·  view source on GitHub ↗
(self, arr)

Source from the content-addressed store, hash-verified

115
116 class frominterface:
117 def __init__(self, arr):
118 self.arr = arr
119 self.__array_interface__ = arr.__array_interface__
120
121 view1 = np.asarray(frominterface)
122 view2 = view1[...]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected