Commits

Armin Rigo committed 37bab87

added default_is_true

Comments (0)

Files changed (1)

pypy/objspace/std/objspace.py

     return space.newbool(not space.is_true(w_obj))
 
 StdObjSpace.not_.register(default_not, W_ANY)
+
+def default_is_true(space, w_obj):
+    return True   # everything is True unless otherwise specified
+
+StdObjSpace.is_true.register(default_is_true, W_ANY)