From 48ef07dc880e384409024c81e7da67cc47c90d9e Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Wed, 19 Jul 2006 03:33:22 +0000 Subject: Fix a couple of issues with object matrices --- numpy/core/src/arrayobject.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'numpy/core/src/arrayobject.c') 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 *)\ -- cgit v1.2.1