summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-19 03:33:22 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-19 03:33:22 +0000
commit48ef07dc880e384409024c81e7da67cc47c90d9e (patch)
tree80b7ce4bc3777ac13218a2a2f38234d67649e84e /numpy/core/src/arrayobject.c
parentd5a13c5e4d881a205bef6ce64cb2222aef98d43c (diff)
downloadnumpy-48ef07dc880e384409024c81e7da67cc47c90d9e.tar.gz
Fix a couple of issues with object matrices
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 8bc8e0026..8a80e2e68 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -5562,11 +5562,6 @@ array_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
"requested array");
goto fail;
}
- if (descr->hasobject) {
- PyErr_SetString(PyExc_TypeError, "cannot construct " \
- "an object array from buffer data");
- goto fail;
- }
/* get writeable and aligned */
if (fortran) buffer.flags |= FORTRAN;
ret = (PyArrayObject *)\