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

Method __init__

numpy/core/tests/test_array_coercion.py:74–76  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

72 # Array-Struct
73 class ArrayStruct:
74 def __init__(self, a):
75 self.a = a # need to hold on to keep struct valid
76 self.__array_struct__ = a.__array_struct__
77
78 yield param(ArrayStruct, id="__array_struct__")
79

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected