diff options
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index e51b1bc3e..b37201ee8 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -4480,14 +4480,14 @@ array_shape_set(PyArrayObject *self, PyObject *val) { int nd; PyObject *ret; - + /* Assumes C-order */ ret = PyArray_Reshape(self, val); if (ret == NULL) return -1; if (PyArray_DATA(ret) != PyArray_DATA(self)) { Py_DECREF(ret); PyErr_SetString(PyExc_AttributeError, - "setting the shape of a non-contiguous array"); + "incompatible shape for a non-contiguous array"); return -1; } |