[pypy-commit] pypy set-strategies: obviuosly d_obj still could be an int-dict

l.diekmann noreply at buildbot.pypy.org
Thu Nov 10 13:50:11 CET 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49182:d8f16ee35e9b
Date: 2011-05-27 14:27 +0200
http://bitbucket.org/pypy/pypy/changeset/d8f16ee35e9b/

Log:	obviuosly d_obj still could be an int-dict

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
@@ -543,7 +543,7 @@
             d_obj = self.cast_from_void_star(w_set.sstorage)
             other_w = w_other.getkeys()
             for w_key in other_w:
-                d_obj[w_key] = None
+                d_obj[self.unwrap(w_key)] = None
             return
 
         elif w_set.strategy is w_other.strategy:


More information about the pypy-commit mailing list