[Numpy-svn] r3100 - in trunk/numpy/core: . src

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Sep 1 01:09:58 CDT 2006


Author: oliphant
Date: 2006-09-01 01:09:52 -0500 (Fri, 01 Sep 2006)
New Revision: 3100

Modified:
   trunk/numpy/core/setup.py
   trunk/numpy/core/src/arrayobject.c
Log:
Fix default type of empty array.  Fix test for strtod on Python 2.3

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2006-09-01 05:53:54 UTC (rev 3099)
+++ trunk/numpy/core/setup.py	2006-09-01 06:09:52 UTC (rev 3100)
@@ -102,7 +102,8 @@
                 moredefs.append('NPY_NO_SIGNAL')
                 
             if sys.version[:3] < '2.4':
-                if check_func('strtod'):
+                if config_cmd.check_func('strtod', decl=False,
+                                         headers=['stdlib.h']):
                     moredefs.append(('PyOS_ascii_strtod', 'strtod'))
 
             target_f = open(target,'a')

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2006-09-01 05:53:54 UTC (rev 3099)
+++ trunk/numpy/core/src/arrayobject.c	2006-09-01 06:09:52 UTC (rev 3100)
@@ -6944,7 +6944,7 @@
                 }
                 if (l == 0 && minitype->type_num == PyArray_BOOL) {
                         Py_DECREF(minitype);
-                        minitype = PyArray_DescrFromType(PyArray_INTP);
+                        minitype = PyArray_DescrFromType(PyArray_DEFAULT);
                 }
                 while (--l >= 0) {
                         PyArray_Descr *newtype;



More information about the Numpy-svn mailing list