[Numpy-svn] r5465 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Sun Jul 20 02:27:22 CDT 2008


Author: rkern
Date: 2008-07-20 02:27:21 -0500 (Sun, 20 Jul 2008)
New Revision: 5465

Modified:
   trunk/numpy/lib/format.py
Log:
BUG: Allow longs as well as ints to satisfy Win64.

Modified: trunk/numpy/lib/format.py
===================================================================
--- trunk/numpy/lib/format.py	2008-07-20 07:07:51 UTC (rev 5464)
+++ trunk/numpy/lib/format.py	2008-07-20 07:27:21 UTC (rev 5465)
@@ -244,7 +244,7 @@
 
     # Sanity-check the values.
     if (not isinstance(d['shape'], tuple) or
-        not numpy.all([isinstance(x, int) for x in d['shape']])):
+        not numpy.all([isinstance(x, (int,long)) for x in d['shape']])):
         msg = "shape is not valid: %r"
         raise ValueError(msg % (d['shape'],))
     if not isinstance(d['fortran_order'], bool):



More information about the Numpy-svn mailing list