Author: Lukas Diekmann <[email protected]>
Branch: dict-strategies
Changeset: r44457:7ad098a82426
Date: 2011-04-15 15:15 +0200
http://bitbucket.org/pypy/pypy/changeset/7ad098a82426/
Log: only switch to objectstrategy if this did not already happen
diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -394,8 +394,6 @@
w_dict = check_new_dictionary(space, w_dict)
w_olddict = self.getdict(space)
assert isinstance(w_dict, W_DictMultiObject)
- #if w_olddict.rdict is None:
- # w_olddict._as_rdict()
if type(w_olddict.strategy) is not ObjectDictStrategy:
w_olddict.strategy.switch_to_object_strategy(w_olddict)
flag = self._get_mapdict_map().write(self, ("dict", SPECIAL), w_dict)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit