Author: Carl Friedrich Bolz <[email protected]>
Branch:
Changeset: r62398:51ddba03aa92
Date: 2013-03-18 15:31 +0100
http://bitbucket.org/pypy/pypy/changeset/51ddba03aa92/
Log: add an assert to the object list strategy that it is not switching
to itself. This assert failed when going via the generic
setitem_str, which I also fixed.
diff --git a/pypy/objspace/std/dictmultiobject.py
b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -565,6 +565,12 @@
def w_keys(self, w_dict):
return self.space.newlist(self.unerase(w_dict.dstorage).keys())
+ def setitem_str(self, w_dict, s, w_value):
+ self.setitem(w_dict, self.space.wrap(s), w_value)
+
+ def switch_to_object_strategy(self, w_dict):
+ assert 0, "should be unreachable"
+
create_iterator_classes(ObjectDictStrategy)
class StringDictStrategy(AbstractTypedStrategy, DictStrategy):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit