[Scipy-svn] r3177 - trunk/Lib/optimize

scipy-svn@scip... scipy-svn@scip...
Thu Jul 19 03:39:18 CDT 2007


Author: dmitrey.kroshko
Date: 2007-07-19 03:38:25 -0500 (Thu, 19 Jul 2007)
New Revision: 3177

Modified:
   trunk/Lib/optimize/optimize.py
Log:
"apply" funcs removed in optimize.py


Modified: trunk/Lib/optimize/optimize.py
===================================================================
--- trunk/Lib/optimize/optimize.py	2007-07-19 08:33:19 UTC (rev 3176)
+++ trunk/Lib/optimize/optimize.py	2007-07-19 08:38:25 UTC (rev 3177)
@@ -1525,7 +1525,7 @@
                 funcalls += 1
         else:
             w = xc + _gold*(xc-xb)
-            fw = apply(func, (w,)+args)
+            fw = func(*((w,)+args))
             funcalls += 1
         xa=xb; xb=xc; xc=w
         fa=fb; fb=fc; fc=fw



More information about the Scipy-svn mailing list