diff options
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 5 |
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 *)\ |