[pypy-commit] pypy set-strategies: fixed ne__Set_settypedef
l.diekmann
noreply at buildbot.pypy.org
Thu Nov 10 13:49:50 CET 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49164:7cfd17778080
Date: 2011-05-18 16:54 +0200
http://bitbucket.org/pypy/pypy/changeset/7cfd17778080/
Log: fixed ne__Set_settypedef
diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -848,8 +848,8 @@
def ne__Set_settypedef(space, w_left, w_other):
#XXX this is not tested
- rd = make_setdata_from_w_iterable(space, w_other)
- return space.wrap(_is_eq(w_left.setdata, rd))
+ w_other_as_set = w_left._newobj(space, w_other)
+ return space.wrap(w_left.equals(w_other))
ne__Set_frozensettypedef = ne__Set_settypedef
ne__Frozenset_settypedef = ne__Set_settypedef
More information about the pypy-commit
mailing list