From 440a2627ac7d15de4b765279ce7546e66ddfa780 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Mon, 23 Oct 2006 22:03:14 +0000 Subject: Add ability to sort arrays with fields defined more intelligently. --- numpy/core/src/arrayobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 45983e84d..2aea422ae 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -5881,7 +5881,8 @@ array_shape_set(PyArrayObject *self, PyObject *val) if (PyArray_DATA(ret) != PyArray_DATA(self)) { Py_DECREF(ret); PyErr_SetString(PyExc_AttributeError, - "incompatible shape for a non-contiguous array"); + "incompatible shape for a non-contiguous "\ + "array"); return -1; } -- cgit v1.2.1