summaryrefslogtreecommitdiff
path: root/doc/source/glossary.rst
diff options
context:
space:
mode:
authorBen Nathanson <github@bigriver.xyz>2020-08-05 08:05:28 -0400
committermattip <matti.picus@gmail.com>2020-09-07 11:39:13 +0300
commit03e116da14d8413ebc9eda1ed7aa115a70d5feef (patch)
treea59b609b5e7de45554ba910f02a102ecc5074960 /doc/source/glossary.rst
parentc26d56933627cf08b3cfffcaa320ef77fdd348b3 (diff)
downloadnumpy-03e116da14d8413ebc9eda1ed7aa115a70d5feef.tar.gz
DOC: 6th try: Fix doctest on PR #16996
Diffstat (limited to 'doc/source/glossary.rst')
-rw-r--r--doc/source/glossary.rst12
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