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

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Nov 22 11:03:22 CST 2006


Author: oliphant
Date: 2006-11-22 11:03:19 -0600 (Wed, 22 Nov 2006)
New Revision: 3460

Modified:
   trunk/numpy/lib/polynomial.py
Log:
Fix early return in polysub.

Modified: trunk/numpy/lib/polynomial.py
===================================================================
--- trunk/numpy/lib/polynomial.py	2006-11-22 17:02:43 UTC (rev 3459)
+++ trunk/numpy/lib/polynomial.py	2006-11-22 17:03:19 UTC (rev 3460)
@@ -367,7 +367,7 @@
     a2 = atleast_1d(a2)
     diff = len(a2) - len(a1)
     if diff == 0:
-        return a1 - a2
+        val = a1 - a2
     elif diff > 0:
         zr = NX.zeros(diff, a1.dtype)
         val = NX.concatenate((zr, a1)) - a2



More information about the Numpy-svn mailing list