summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-31 08:32:04 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-31 08:32:04 +0000
commitda78766309515905b4016ac494dac384fe80a5fd (patch)
tree0e62798744fb6f3aafd85bfca676f625e5d02b73 /numpy/core/src/arraymethods.c
parent698a593861f8a9c4f2346e456eee978393bf5595 (diff)
downloadnumpy-da78766309515905b4016ac494dac384fe80a5fd.tar.gz
Fix-up record-array pickling and attribute access errors. Fix minor pickling inconsistency with un-ordered ('|') data-types.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index 7ec1e9bc1..0806b67e2 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -876,12 +876,12 @@ array_reduce(PyArrayObject *self, PyObject *args)
Py_DECREF(mod);
PyTuple_SET_ITEM(ret, 0, obj);
PyTuple_SET_ITEM(ret, 1,
- Py_BuildValue("ONN",
+ Py_BuildValue("ONc",
(PyObject *)self->ob_type,
Py_BuildValue("(N)",
PyInt_FromLong(0)),
- PyObject_GetAttrString((PyObject *)(self->descr),
- "char")));
+ /* dummy data-type */
+ 'b'));
/* Now fill in object's state. This is a tuple with
4 arguments