summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorJay Bourque <jay.bourque@continuum.io>2013-01-08 18:12:58 -0600
committerJay Bourque <jay.bourque@continuum.io>2013-01-09 12:12:32 -0600
commitfda92e20428a5434a49fe439175c7b5b583e96fc (patch)
tree4dba68554b97381ea9c2d41334e410c0e590c657 /numpy/core
parent849a8c5f9db1087def26e63393ec48497cee8dd4 (diff)
downloadnumpy-fda92e20428a5434a49fe439175c7b5b583e96fc.tar.gz
Fix ndindex issue
Call to ndindex() with no arguments results in a ValueError exception, whereas before commit ca27396b, a call with no arguments was allowed. Issue is due to unneeded check for shape tuple size.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/multiarray/ctors.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index 980d73a32..bdf2e6e2b 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -2075,11 +2075,6 @@ PyArray_FromInterface(PyObject *origin)
/* Case for data access through pointer */
if (attr && PyTuple_Check(attr)) {
PyObject *dataptr;
- if (n == 0) {
- PyErr_SetString(PyExc_ValueError,
- "__array_interface__ shape must be at least size 1");
- goto fail;
- }
if (PyTuple_GET_SIZE(attr) != 2) {
PyErr_SetString(PyExc_TypeError,
"__array_interface__ data must be a 2-tuple with "