[Numpy-svn] r3247 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Oct 3 11:08:06 EDT 2006


Author: oliphant
Date: 2006-10-03 10:08:04 -0500 (Tue, 03 Oct 2006)
New Revision: 3247

Modified:
   trunk/numpy/core/records.py
Log:
Convert to arrays earlier.

Modified: trunk/numpy/core/records.py
===================================================================
--- trunk/numpy/core/records.py	2006-10-03 01:44:48 UTC (rev 3246)
+++ trunk/numpy/core/records.py	2006-10-03 15:08:04 UTC (rev 3247)
@@ -263,15 +263,15 @@
     >>> r.a
     array([1, 2, 3, 4])
     """
-        
+    
+    arrayList = [sb.asarray(x) for x in arrayList]
+    
     if shape is None or shape == 0:
         shape = arrayList[0].shape
 
     if isinstance(shape, int):
         shape = (shape,)
 
-    arrayList = [sb.asarray(x) for x in arrayList]
-
     if formats is None and dtype is None:
         # go through each object in the list to see if it is an ndarray
         # and determine the formats.




More information about the Numpy-svn mailing list