[Numpy-svn] r8281 - trunk/numpy/f2py

numpy-svn@scip... numpy-svn@scip...
Sat Mar 6 17:57:58 CST 2010


Author: ptvirtan
Date: 2010-03-06 17:57:58 -0600 (Sat, 06 Mar 2010)
New Revision: 8281

Modified:
   trunk/numpy/f2py/cfuncs.py
Log:
3K: f2py: address a semantic difference between Py2 and Py3

Modified: trunk/numpy/f2py/cfuncs.py
===================================================================
--- trunk/numpy/f2py/cfuncs.py	2010-03-06 20:09:14 UTC (rev 8280)
+++ trunk/numpy/f2py/cfuncs.py	2010-03-06 23:57:58 UTC (rev 8281)
@@ -1154,7 +1154,8 @@
                 else:
                     out.append(outneeds[n][0])
                     del outneeds[n][0]
-            if saveout and (0 not in map(lambda x,y:x==y,saveout,outneeds[n])):
+            if saveout and (0 not in map(lambda x,y:x==y,saveout,outneeds[n])) \
+                   and outneeds[n] != []:
                 print n,saveout
                 errmess('get_needs: no progress in sorting needs, probably circular dependence, skipping.\n')
                 out=out+saveout



More information about the Numpy-svn mailing list