summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-25 08:19:26 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-25 08:19:26 +0000
commit14cc42d233c139c1146398e880e38dfe246b12fb (patch)
treeff13ad3bd7032f8ce35e85a0c7e3a2c20698768f /numpy/core/src/arrayobject.c
parent6a355bbee8dbfdbc33f4254a4bcdc35ec1c401f7 (diff)
downloadnumpy-14cc42d233c139c1146398e880e38dfe246b12fb.tar.gz
Fix so that string and unicode types don't print NULL bytes
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index f79e78aa4..0257fe476 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4391,7 +4391,7 @@ array_descr_set(PyArrayObject *self, PyObject *arg)
if (!(PyArray_DescrConverter(arg, &newtype)) ||
newtype == NULL) {
- PyErr_SetString(PyExc_TypeError, "invalid type for array");
+ PyErr_SetString(PyExc_TypeError, "invalid data-type for array");
return -1;
}
if (newtype->type_num == PyArray_OBJECT || \