summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorsasha <sasha@localhost>2006-01-11 04:24:47 +0000
committersasha <sasha@localhost>2006-01-11 04:24:47 +0000
commit04d73382bcf31f51726e2e7aae2cc7772a71d84f (patch)
treebc20d367b69a0904a9fd4d3d1b58ca6ef9e7ecfe /numpy/core/src/arrayobject.c
parentb32744e3fc5b40bdfbd626dcc1f72907d77c01c4 (diff)
downloadnumpy-04d73382bcf31f51726e2e7aae2cc7772a71d84f.tar.gz
Spell newaxis in lower case in error messages and comments
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 3537cbe21..e1dbdbab0 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -1776,8 +1776,8 @@ count_new_axes_0d(PyObject *tuple)
}
if (newaxis_count + ellipsis_count != argument_count) {
PyErr_SetString(PyExc_IndexError,
- "0-d arrays can use a single ()"
- " or a list of ellipses and newaxis"
+ "0-d arrays can only use a single ()"
+ " or a list of ellipses and newaxes"
" as an index");
return -1;
}
@@ -6491,7 +6491,7 @@ iter_subscript(PyArrayIterObject *self, PyObject *ind)
ind = PyTuple_GET_ITEM(ind, 0);
}
- /* Tuples >1d not accepted --- i.e. no NewAxis */
+ /* Tuples >1d not accepted --- i.e. no newaxis */
/* Could implement this with adjusted strides
and dimensions in iterator */
@@ -6524,7 +6524,7 @@ iter_subscript(PyArrayIterObject *self, PyObject *ind)
goto fail;
if (n_steps == RubberIndex || n_steps == PseudoIndex) {
PyErr_SetString(PyExc_IndexError,
- "cannot use Ellipsis or NewAxes here");
+ "cannot use Ellipsis or newaxes here");
goto fail;
}
PyArray_ITER_GOTO1D(self, start)
@@ -6742,7 +6742,7 @@ iter_ass_subscript(PyArrayIterObject *self, PyObject *ind, PyObject *val)
if (start == -1) goto finish;
if (n_steps == RubberIndex || n_steps == PseudoIndex) {
PyErr_SetString(PyExc_IndexError,
- "cannot use Ellipsis or NewAxes here");
+ "cannot use Ellipsis or newaxes here");
goto finish;
}
PyArray_ITER_GOTO1D(self, start);
@@ -6989,7 +6989,7 @@ fancy_indexing_check(PyObject *args)
}
else if (PySequence_Check(args)) {
/* Sequences < MAX_DIMS with any slice objects
- or NewAxis, or Ellipsis is considered standard
+ or newaxis, or Ellipsis is considered standard
as long as there are also no Arrays and or additional
sequences embedded.
*/