[Numpy-svn] r3613 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Thu Mar 29 14:22:00 CDT 2007


Author: oliphant
Date: 2007-03-29 14:21:58 -0500 (Thu, 29 Mar 2007)
New Revision: 3613

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Fix ticket #485 by improving how a dtype variable reports its length.

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2007-03-29 18:23:11 UTC (rev 3612)
+++ trunk/numpy/core/src/arrayobject.c	2007-03-29 19:21:58 UTC (rev 3613)
@@ -11438,7 +11438,7 @@
         PyArray_Descr *self = (PyArray_Descr *)self0;
 
         if (self->names)
-                return PyDict_Size(self->fields);
+                return PyTuple_GET_SIZE(self->names);
         else return 0;
 }
 



More information about the Numpy-svn mailing list