[pypy-commit] pypy dict-strategies: only switch to objectstrategy if this did not already happen
l.diekmann
noreply at buildbot.pypy.org
Wed May 25 16:48:20 CEST 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
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)
More information about the pypy-commit
mailing list