[pypy-commit] pypy set-strategies: need to use r_dict when storing wrapped objects
l.diekmann
noreply at buildbot.pypy.org
Thu Nov 10 13:52:22 CET 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
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):
More information about the pypy-commit
mailing list