From 1a009e0d061df490fa91df8684768ed3217704db Mon Sep 17 00:00:00 2001 From: "Joseph R. Fox-Rabinovitz" Date: Mon, 3 Jan 2022 23:27:04 -0600 Subject: ENH: Support for changing dtype in non-C-contiguous views Expires deprecated F-contiguous behavior. Simplifies C code of dtype set descriptor. Adds tests that verify which error condition is triggered. Introduces extra long exception message that upsets linter. --- numpy/lib/stride_tricks.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/lib/stride_tricks.py') diff --git a/numpy/lib/stride_tricks.py b/numpy/lib/stride_tricks.py index 5093993a9..6794ad557 100644 --- a/numpy/lib/stride_tricks.py +++ b/numpy/lib/stride_tricks.py @@ -86,6 +86,7 @@ def as_strided(x, shape=None, strides=None, subok=False, writeable=True): Vectorized write operations on such arrays will typically be unpredictable. They may even give different results for small, large, or transposed arrays. + Since writing to these arrays has to be tested and done with great care, you may want to use ``writeable=False`` to avoid accidental write operations. -- cgit v1.2.1