diff options
author | Ben Nathanson <github@bigriver.xyz> | 2020-08-05 08:05:28 -0400 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-09-07 11:39:13 +0300 |
commit | 03e116da14d8413ebc9eda1ed7aa115a70d5feef (patch) | |
tree | a59b609b5e7de45554ba910f02a102ecc5074960 /doc/source/glossary.rst | |
parent | c26d56933627cf08b3cfffcaa320ef77fdd348b3 (diff) | |
download | numpy-03e116da14d8413ebc9eda1ed7aa115a70d5feef.tar.gz |
DOC: 6th try: Fix doctest on PR #16996
Diffstat (limited to 'doc/source/glossary.rst')
-rw-r--r-- | doc/source/glossary.rst | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/doc/source/glossary.rst b/doc/source/glossary.rst index 0af59c021..7c1ba64ee 100644 --- a/doc/source/glossary.rst +++ b/doc/source/glossary.rst @@ -35,17 +35,7 @@ Glossary >>> a[0,...,0].shape (3,) - It can be used at most once: - - >>> a[0,...,0,...].shape - --------------------------------------------------------------------------- - IndexError Traceback (most recent call last) - <ipython-input-45-e12b83e31ec3> in <module> - ----> 1 a[0,...,0,...].shape - <BLANKLINE> - IndexError: an index can only have a single ellipsis ('...') - - For details, see :doc:`Indexing. <reference/arrays.indexing>` + It can be used at most once; ``a[...,0,...]`` raises an ``IndexError``. **In printouts**, NumPy substitutes ``...`` for the middle elements of large arrays. To see the entire array, use |