[pypy-svn] r8801 - pypy/dist/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Wed Feb 2 12:33:41 CET 2005


Author: arigo
Date: Wed Feb  2 12:33:41 2005
New Revision: 8801

Modified:
   pypy/dist/pypy/objspace/std/floatobject.py
Log:
Minor fix.


Modified: pypy/dist/pypy/objspace/std/floatobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/floatobject.py	(original)
+++ pypy/dist/pypy/objspace/std/floatobject.py	Wed Feb  2 12:33:41 2005
@@ -235,7 +235,7 @@
                            W_FloatObject(space, mod)])
 
 def pow__Float_Float_ANY(space, w_float1, w_float2, thirdArg):
-    if thirdArg is not space.w_None:
+    if not space.is_w(thirdArg, space.w_None):
         raise FailedToImplement(space.w_TypeError, space.wrap("pow() 3rd argument not allowed unless all arguments are integers"))
     x = w_float1.floatval
     y = w_float2.floatval



More information about the Pypy-commit mailing list