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

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


Author: oliphant
Date: 2006-11-22 11:02:43 -0600 (Wed, 22 Nov 2006)
New Revision: 3459

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

Modified: trunk/numpy/lib/polynomial.py
===================================================================
--- trunk/numpy/lib/polynomial.py	2006-11-22 11:19:08 UTC (rev 3458)
+++ trunk/numpy/lib/polynomial.py	2006-11-22 17:02:43 UTC (rev 3459)
@@ -348,7 +348,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