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

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Oct 5 14:53:07 EDT 2006


Author: oliphant
Date: 2006-10-05 13:53:05 -0500 (Thu, 05 Oct 2006)
New Revision: 3263

Modified:
   trunk/numpy/core/records.py
Log:
Fix ticket #320

Modified: trunk/numpy/core/records.py
===================================================================
--- trunk/numpy/core/records.py	2006-10-05 18:51:37 UTC (rev 3262)
+++ trunk/numpy/core/records.py	2006-10-05 18:53:05 UTC (rev 3263)
@@ -306,7 +306,7 @@
     for k, obj in enumerate(arrayList):
         nn = len(descr[k].shape)
         if obj.shape[nn:] != shape:
-            raise ValueError, "array-shape mismatch in array", k
+            raise ValueError, "array-shape mismatch in array %d" % k
         
     _array = recarray(shape, descr)
 




More information about the Numpy-svn mailing list