8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b0fc2 commit cd7fcb3Copy full SHA for cd7fcb3
numpy/core/_exceptions.py
@@ -169,13 +169,13 @@ class AxisError(ValueError, IndexError):
169
The class constructor generally takes the axis and arrays'
170
dimensionality as arguments:
171
172
- >>> np.AxisError(2, 1, prefix='error')
173
- numpy.AxisError('error: axis 2 is out of bounds for array of dimension 1')
+ >>> np.AxisError(2, 1, msg_prefix='error')
+ AxisError('error: axis 2 is out of bounds for array of dimension 1')
174
175
Alternatively, a custom exception message can be passed:
176
177
>>> np.AxisError('Custom error message')
178
- numpy.AxisError('Custom error message')
+ AxisError('Custom error message')
179
180
"""
181
0 commit comments