[Numpy-svn] r5473 - branches/1.1.x/numpy/lib
numpy-svn at scipy.org
numpy-svn at scipy.org
Sun Jul 20 15:33:01 EDT 2008
Author: charris
Date: 2008-07-20 14:32:59 -0500 (Sun, 20 Jul 2008)
New Revision: 5473
Modified:
branches/1.1.x/numpy/lib/format.py
Log:
Backport r5465.
Modified: branches/1.1.x/numpy/lib/format.py
===================================================================
--- branches/1.1.x/numpy/lib/format.py 2008-07-20 19:30:37 UTC (rev 5472)
+++ branches/1.1.x/numpy/lib/format.py 2008-07-20 19:32:59 UTC (rev 5473)
@@ -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