Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r49254:766b7c29656f
Date: 2011-10-18 15:46 +0200
http://bitbucket.org/pypy/pypy/changeset/766b7c29656f/
Log: need to use r_dict when storing wrapped objects
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
@@ -588,7 +588,7 @@
return storage, strategy
def _intersect_wrapped(self, w_set, w_other):
- result = self.get_empty_dict()
+ result = newset(self.space)
for key in self.unerase(w_set.sstorage):
w_key = self.wrap(key)
if w_other.has_key(w_key):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit