diff options
author | Qiming Sun <osirpt.sun@gmail.com> | 2019-09-19 09:16:17 -0700 |
---|---|---|
committer | Qiming Sun <osirpt.sun@gmail.com> | 2019-09-19 09:16:17 -0700 |
commit | 001c43bb5f250ff7ad5d350046e4ef7ac6c202db (patch) | |
tree | a75737eac6babcc4a7d9279bbda30330b207e5d3 /numpy/core/_internal.py | |
parent | 06535b0cc52a699eebb89c801c1feddc9cf168ca (diff) | |
download | numpy-001c43bb5f250ff7ad5d350046e4ef7ac6c202db.tar.gz |
TEST: Fix broken pypy ctypes test
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 |