summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-21 20:55:33 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-21 20:55:33 +0000
commit52bb92724e0bb023544a3b68a16d69bb0c76d058 (patch)
treeeb5c2933fa2eec0f3781c7abb701c7b1bdd55f78 /numpy/core/src/arrayobject.c
parent38fb6d0ed7881d4e4c28d242f9017e500cf34f20 (diff)
downloadnumpy-52bb92724e0bb023544a3b68a16d69bb0c76d058.tar.gz
Fix shape attributes of data-types with no shape
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index e8a6441e2..ddbc65d21 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -10487,7 +10487,7 @@ static PyObject *
arraydescr_shape_get(PyArray_Descr *self)
{
if (self->subarray == NULL) {
- return Py_BuildValue("(N)", PyInt_FromLong(1));
+ return PyTuple_New(0);
}
Py_INCREF(self->subarray->shape);
return (PyObject *)(self->subarray->shape);