1. Karl Ramm
  2. pypy

Commits

Carl Friedrich Bolz  committed 51ddba0

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.

  • Participants
  • Parent commits 3d242f8
  • Branches default

Comments (0)

Files changed (1)

File pypy/objspace/std/dictmultiobject.py

View file
     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):