summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-03-29 19:21:58 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-03-29 19:21:58 +0000
commitf89443c39616bd4ad13cb9152c28acc15c6500be (patch)
treeca7b8e180e75cbfb0083df825b377a05bbbd52c4 /numpy/core/src/arrayobject.c
parentcc21968aa91cef9a7517092c07684192c73a830b (diff)
downloadnumpy-f89443c39616bd4ad13cb9152c28acc15c6500be.tar.gz
Fix ticket #485 by improving how a dtype variable reports its length.
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 8ec1e6b47..6439efad8 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -11438,7 +11438,7 @@ descr_length(PyObject *self0)
PyArray_Descr *self = (PyArray_Descr *)self0;
if (self->names)
- return PyDict_Size(self->fields);
+ return PyTuple_GET_SIZE(self->names);
else return 0;
}