summaryrefslogtreecommitdiff
path: root/numpy/exceptions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-12-06 13:01:11 +0100
committerSebastian Berg <sebastianb@nvidia.com>2022-12-06 20:02:37 +0100
commit2ac75e57bdc176860896e144533aa7ab42093d94 (patch)
tree2703e6e0e0a631e04ae08e0ac60e8d88ba522795 /numpy/exceptions.py
parent928a7b40a40941c0c282cfad78c3a6021422a71c (diff)
downloadnumpy-2ac75e57bdc176860896e144533aa7ab42093d94.tar.gz
DOC: Fix doc `numpy.<exception>` to `numpy.exceptions.<exception>`
Diffstat (limited to 'numpy/exceptions.py')
-rw-r--r--numpy/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/exceptions.py b/numpy/exceptions.py
index ca0a47c04..d2fe9257b 100644
--- a/numpy/exceptions.py
+++ b/numpy/exceptions.py
@@ -146,14 +146,14 @@ class AxisError(ValueError, IndexError):
>>> np.cumsum(array_1d, axis=1)
Traceback (most recent call last):
...
- numpy.AxisError: axis 1 is out of bounds for array of dimension 1
+ numpy.exceptions.AxisError: axis 1 is out of bounds for array of dimension 1
Negative axes are preserved:
>>> np.cumsum(array_1d, axis=-2)
Traceback (most recent call last):
...
- numpy.AxisError: axis -2 is out of bounds for array of dimension 1
+ numpy.exceptions.AxisError: axis -2 is out of bounds for array of dimension 1
The class constructor generally takes the axis and arrays'
dimensionality as arguments: