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

numpy-svn@scip... numpy-svn@scip...
Sat Feb 20 20:48:47 CST 2010


Author: ptvirtan
Date: 2010-02-20 20:48:47 -0600 (Sat, 20 Feb 2010)
New Revision: 8208

Modified:
   trunk/numpy/lib/recfunctions.py
Log:
3K: lib: zip is izip on Py3

Modified: trunk/numpy/lib/recfunctions.py
===================================================================
--- trunk/numpy/lib/recfunctions.py	2010-02-21 02:48:33 UTC (rev 8207)
+++ trunk/numpy/lib/recfunctions.py	2010-02-21 02:48:47 UTC (rev 8208)
@@ -18,6 +18,10 @@
 
 from numpy.lib._iotools import _is_string_like
 
+import sys
+if sys.version_info[0] >= 3:
+    iterizip = zip
+
 _check_fill_value = np.ma.core._check_fill_value
 
 __all__ = ['append_fields',



More information about the Numpy-svn mailing list