diff options
author | Joseph R. Fox-Rabinovitz <jfoxrabinovitz@gmail.com> | 2022-01-03 23:27:04 -0600 |
---|---|---|
committer | Joseph R. Fox-Rabinovitz <jfoxrabinovitz@gmail.com> | 2022-01-05 12:55:19 -0600 |
commit | 1a009e0d061df490fa91df8684768ed3217704db (patch) | |
tree | 0c9eba53c0d764d522939c6a17794f45b00c3f12 /numpy/lib/stride_tricks.py | |
parent | 84fd36cc94436bb842aa33c14f7e973d6e00c8b2 (diff) | |
download | numpy-1a009e0d061df490fa91df8684768ed3217704db.tar.gz |
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.
Diffstat (limited to 'numpy/lib/stride_tricks.py')
-rw-r--r-- | numpy/lib/stride_tricks.py | 1 |
1 files changed, 1 insertions, 0 deletions
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. |