Commits

Armin Rigo committed bf50a6b

added default_not

Comments (0)

Files changed (1)

pypy/objspace/std/objspace.py

     return intobject.W_IntObject(id(w_obj))
 
 StdObjSpace.id.register(default_id, W_ANY)
+
+def default_not(space, w_obj):
+    return space.newbool(not space.is_true(w_obj))
+
+StdObjSpace.not_.register(default_not, W_ANY)