[pypy-svn] rev 937 - pypy/trunk/src/pypy/objspace/std

tismer at codespeak.net tismer at codespeak.net
Sun Jun 22 14:33:59 CEST 2003


Author: tismer
Date: Sun Jun 22 14:33:58 2003
New Revision: 937

Modified:
   pypy/trunk/src/pypy/objspace/std/intobject.py
Log:
undid wrongheaded fix (wasn't a bug)

Modified: pypy/trunk/src/pypy/objspace/std/intobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/intobject.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/intobject.py	Sun Jun 22 14:33:58 2003
@@ -321,7 +321,8 @@
 StdObjSpace.abs.register(int_abs, W_IntObject)
 
 def int_is_true(space, w_int1):
-    return space.newbool(w_int1.intval != 0)
+    ''' note: this must return an UNWRAPPED bool!!! '''
+    return w_int1.intval != 0
 
 StdObjSpace.is_true.register(int_is_true, W_IntObject)
 


More information about the Pypy-commit mailing list