diff --git a/doc/release/1.15.0-notes.rst b/doc/release/1.15.0-notes.rst index 49e8ab22d77e..3ea51dca8ef5 100644 --- a/doc/release/1.15.0-notes.rst +++ b/doc/release/1.15.0-notes.rst @@ -97,6 +97,11 @@ available, but will not be maintained. The standard testing utilities, the nose specific functions `import_nose` and `raises`. Those functions are not used in numpy, but are kept for downstream compatibility. +Numpy no longer monkey-patches ``ctypes`` with ``__array_interface__`` +---------------------------------------------------------------------- +Previously numpy added ``__array_interface__`` attributes to all the integer +types from ``ctypes``. + ``np.ma.notmasked_contiguous`` and ``np.ma.flatnotmasked_contiguous`` always return lists ----------------------------------------------------------------------------------------- This was always the documented behavior, but in reality the result used to be diff --git a/numpy/ctypeslib.py b/numpy/ctypeslib.py index b8457c78b2c5..9d71adbdb6f6 100644 --- a/numpy/ctypeslib.py +++ b/numpy/ctypeslib.py @@ -319,120 +319,47 @@ def ndpointer(dtype=None, ndim=None, shape=None, flags=None): _pointer_type_cache[(dtype, shape, ndim, num)] = klass return klass -if ctypes is not None: - ct = ctypes - ################################################################ - # simple types - - # maps the numpy typecodes like '