diff options
author | wtli <liwt31@163.com> | 2019-03-06 17:33:48 +0800 |
---|---|---|
committer | wtli <liwt31@163.com> | 2019-03-14 21:25:37 +0800 |
commit | e0ffa191ade1ac8548cad38a73fecc9f2528f9ef (patch) | |
tree | 1dd255c6ce897a36ed838fed356d821b53f09335 /numpy/doc/indexing.py | |
parent | 1a15c074f002cb7520e347392841b6b371c71361 (diff) | |
download | numpy-e0ffa191ade1ac8548cad38a73fecc9f2528f9ef.tar.gz |
DOC: add copy on slicing notice
Diffstat (limited to 'numpy/doc/indexing.py')
-rw-r--r-- | numpy/doc/indexing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/doc/indexing.py b/numpy/doc/indexing.py index 087a688bc..f80d6c29e 100644 --- a/numpy/doc/indexing.py +++ b/numpy/doc/indexing.py @@ -93,7 +93,9 @@ well. A few examples illustrates best: :: [21, 24, 27]]) Note that slices of arrays do not copy the internal array data but -only produce new views of the original data. +only produce new views of the original data. This is different from +list or tuple slicing and an explicit ``copy()`` is recommended if +the original data is not required anymore. It is possible to index arrays with other arrays for the purposes of selecting lists of values out of arrays into new arrays. There are |