diff options
| author | Travis Oliphant <oliphant@enthought.com> | 2006-01-25 08:19:26 +0000 |
|---|---|---|
| committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-25 08:19:26 +0000 |
| commit | 14cc42d233c139c1146398e880e38dfe246b12fb (patch) | |
| tree | ff13ad3bd7032f8ce35e85a0c7e3a2c20698768f /numpy/core/src/arrayobject.c | |
| parent | 6a355bbee8dbfdbc33f4254a4bcdc35ec1c401f7 (diff) | |
| download | numpy-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.c | 2 |
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 || \ |
