diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-01-06 09:18:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 09:18:01 +0200 |
commit | 1684a933d6e4efa260434fd13b67a8ef34db7eca (patch) | |
tree | 818c18e0ca215255b4d670e8115556871a884dd3 /numpy/lib | |
parent | 25807ca1ce80fa7ba8bfda16ae792053223ad965 (diff) | |
parent | 1a009e0d061df490fa91df8684768ed3217704db (diff) | |
download | numpy-1684a933d6e4efa260434fd13b67a8ef34db7eca.tar.gz |
Merge pull request #20722 from madphysicist/dtype-checking-1
ENH: Removed requirement for C-contiguity when changing to dtype of different size
Diffstat (limited to 'numpy/lib')
-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. |