diff options
author | Holger Kohr <kohr@kth.se> | 2015-12-30 01:39:05 +0100 |
---|---|---|
committer | Holger Kohr <kohr@kth.se> | 2016-01-03 19:45:16 +0100 |
commit | 277eabe390c6f67962a48764df3d77443776b3cc (patch) | |
tree | 6c03b25cfec126d7d0014abcdf65262e14dab2b6 /numpy/core | |
parent | 5dab9275475e70630d7b1242c3530a6726c61fa2 (diff) | |
download | numpy-277eabe390c6f67962a48764df3d77443776b3cc.tar.gz |
ENH: clarify error message of broadcast
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/multiarray/iterators.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/src/multiarray/iterators.c b/numpy/core/src/multiarray/iterators.c index 829994b1e..702f9e21a 100644 --- a/numpy/core/src/multiarray/iterators.c +++ b/numpy/core/src/multiarray/iterators.c @@ -1458,8 +1458,8 @@ PyArray_MultiIterFromObjects(PyObject **mps, int n, int nadd, ...) ntot = n + nadd; if (ntot < 2 || ntot > NPY_MAXARGS) { PyErr_Format(PyExc_ValueError, - "Need between 2 and (%d) " \ - "array objects (inclusive).", NPY_MAXARGS); + "Need at least 2 and at most %d " + "array objects.", NPY_MAXARGS); return NULL; } multi = PyArray_malloc(sizeof(PyArrayMultiIterObject)); @@ -1524,8 +1524,8 @@ PyArray_MultiIterNew(int n, ...) if (n < 2 || n > NPY_MAXARGS) { PyErr_Format(PyExc_ValueError, - "Need between 2 and (%d) " \ - "array objects (inclusive).", NPY_MAXARGS); + "Need at least 2 and at most %d " + "array objects.", NPY_MAXARGS); return NULL; } @@ -1608,7 +1608,7 @@ arraymultiter_new(PyTypeObject *NPY_UNUSED(subtype), PyObject *args, PyObject *k return NULL; } PyErr_Format(PyExc_ValueError, - "Need at least two and fewer than (%d) " + "Need at least 2 and at most %d " "array objects.", NPY_MAXARGS); return NULL; } |