diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-03-29 19:21:58 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-03-29 19:21:58 +0000 |
commit | f89443c39616bd4ad13cb9152c28acc15c6500be (patch) | |
tree | ca7b8e180e75cbfb0083df825b377a05bbbd52c4 /numpy/core/src/arrayobject.c | |
parent | cc21968aa91cef9a7517092c07684192c73a830b (diff) | |
download | numpy-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.c | 2 |
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; } |