summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-04-13 21:01:54 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-04-13 21:01:54 +0000
commit036d7a3724a89d880339c89a1aff171d7e4c1e10 (patch)
tree82c093bb977cca82b18ee717722a68511af22771 /numpy/core/src/arrayobject.c
parent66afe6dc308db475d729fbd742d79da00e1955ca (diff)
downloadnumpy-036d7a3724a89d880339c89a1aff171d7e4c1e10.tar.gz
Fix so that b.shape = <tuple> does not work for non-contiguous arrays
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c4
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;
}