summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
authorQiming Sun <osirpt.sun@gmail.com>2019-09-19 09:16:17 -0700
committerQiming Sun <osirpt.sun@gmail.com>2019-09-19 09:16:17 -0700
commit001c43bb5f250ff7ad5d350046e4ef7ac6c202db (patch)
treea75737eac6babcc4a7d9279bbda30330b207e5d3 /numpy/core/_internal.py
parent06535b0cc52a699eebb89c801c1feddc9cf168ca (diff)
downloadnumpy-001c43bb5f250ff7ad5d350046e4ef7ac6c202db.tar.gz
TEST: Fix broken pypy ctypes test
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py24
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