diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-03-05 07:24:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 07:24:39 -0800 |
commit | 901211eddd5e17c8c7c85bc5f791679559d4efb5 (patch) | |
tree | 0ad44299d3fbc1414fa1a2807a673b0b41190968 /doc/source | |
parent | 0c32bb4140215f99b935eae9001eabb10e3c47dc (diff) | |
download | numpy-901211eddd5e17c8c7c85bc5f791679559d4efb5.tar.gz |
DOC: Change list to tuple in example description. (gh-15705)
Changed a description in the quickstart example to use tuple instead of the deprecated list for indexing arrays.
The change is located at the Indexing with Arrays of Indices section.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Closes gh-15699
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/user/quickstart.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/user/quickstart.rst b/doc/source/user/quickstart.rst index e88eee086..05a247f8a 100644 --- a/doc/source/user/quickstart.rst +++ b/doc/source/user/quickstart.rst @@ -1118,8 +1118,8 @@ indices for each dimension must have the same shape. [[10, 9], [11, 11]]]) -Naturally, we can put ``i`` and ``j`` in a sequence (say a list) and -then do the indexing with the list. +In Python, ``arr[i, j]`` is exactly the same as ``arr[(i, j)]``---so we can +put ``i`` and ``j`` in a ``tuple`` and then do the indexing with that. :: |