Commits

Michael Hudson-Doyle  committed f4d852f

add a default_eq method that calls space.is_

  • Participants
  • Parent commits 349f6d5

Comments (0)

Files changed (1)

File pypy/objspace/std/objspace.py

 # add all regular multimethods to StdObjSpace
 for _name, _symbol, _arity in ObjSpace.MethodTable:
     setattr(StdObjSpace, _name, MultiMethod(_symbol, _arity))
+
+def default_eq(space, a, b):
+    return space.is_(a, b)
+
+StdObjSpace.eq.register(default_eq, W_ANY, W_ANY)