summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorsasha <sasha@localhost>2006-02-24 20:55:26 +0000
committersasha <sasha@localhost>2006-02-24 20:55:26 +0000
commit27e255bc8e5149b5326b4940d33db6d337f89a94 (patch)
tree4d2458d8b3ede240da65abb227163a30e79b5049 /numpy/core/src/arrayobject.c
parent00f2295ec55239ce35687a20a7c58d1583b068f1 (diff)
downloadnumpy-27e255bc8e5149b5326b4940d33db6d337f89a94.tar.gz
allow array(())
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 532daf31b..288071cde 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4142,12 +4142,6 @@ array_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
type_num = descr->type_num;
itemsize = descr->elsize;
- if (dims.ptr == NULL) {
- PyErr_SetString(PyExc_ValueError, "need to give a "\
- "valid shape as the first argument");
- goto fail;
- }
-
if (buffer.ptr == NULL) {
ret = (PyArrayObject *)\
PyArray_NewFromDescr(subtype, descr,