You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: Move ctypes ImportError catching to appropriate place (#8898)
This fixes a regression in 3c1a13d, restoring the
behaviour intended by eee00f8.
This also extends the support on ctype-less systems for `arr.ctypes.shape` and `arr.ctypes.strides`.
The dummy_ctype object is a naive fake used when ctypes is not importable. It does not intend to fake any ctypes behavior, but provides a duck-typed interface so that method calls do not fail.
The get_shape and get_strides refactors take advantage of other instance methods and reduce code duplication.
0 commit comments