diff options
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index 7b8ab9215..1cd6cd17f 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -247,30 +247,6 @@ class _missing_ctypes(object): self.value = ptr -class _unsafe_first_element_pointer(object): - """ - Helper to allow viewing an array as a ctypes pointer to the first element - - This avoids: - * dealing with strides - * `.view` rejecting object-containing arrays - * `memoryview` not supporting overlapping fields - """ - def __init__(self, arr): - self.base = arr - - @property - def __array_interface__(self): - i = dict( - shape=(), - typestr='|V0', - data=(self.base.__array_interface__['data'][0], False), - strides=(), - version=3, - ) - return i - - class _ctypes(object): def __init__(self, array, ptr=None): self._arr = array |