[pypy-commit] pypy py3k: fix _pow requiring thirdArg on this branch

pjenvey noreply at buildbot.pypy.org
Tue Oct 8 23:33:45 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r67226:127e26c1e91a
Date: 2013-10-08 13:17 -0700
http://bitbucket.org/pypy/pypy/changeset/127e26c1e91a/

Log:	fix _pow requiring thirdArg on this branch

diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py
--- a/pypy/objspace/std/floatobject.py
+++ b/pypy/objspace/std/floatobject.py
@@ -398,9 +398,9 @@
     x = w_float1.floatval
     y = w_float2.floatval
 
-    return W_FloatObject(_pow(space, x, y))
+    return W_FloatObject(_pow(space, x, y, thirdArg))
 
-def _pow(space, x, y):
+def _pow(space, x, y, thirdArg):
     # Sort out special cases here instead of relying on pow()
     if y == 2.0:       # special case for performance:
         return x * x   # x * x is always correct


More information about the pypy-commit mailing list