diff options
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; } |