[pypy-svn] r4928 - pypy/branch/src-newobjectmodel/pypy/objspace/std
mwh at codespeak.net
mwh at codespeak.net
Fri Jun 4 21:22:47 CEST 2004
Author: mwh
Date: Fri Jun 4 21:22:47 2004
New Revision: 4928
Modified:
pypy/branch/src-newobjectmodel/pypy/objspace/std/booltype.py
Log:
fix bool() <- no arguments!
Modified: pypy/branch/src-newobjectmodel/pypy/objspace/std/booltype.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/objspace/std/booltype.py (original)
+++ pypy/branch/src-newobjectmodel/pypy/objspace/std/booltype.py Fri Jun 4 21:22:47 2004
@@ -3,7 +3,7 @@
def descr__new__(space, w_booltype, w_obj=None):
- if space.is_true(w_obj):
+ if w_obj is not None and space.is_true(w_obj):
return space.w_True
else:
return space.w_False
More information about the Pypy-commit
mailing list