Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r45958:f1360c0d409b
Date: 2011-07-24 16:34 -0700
http://bitbucket.org/pypy/pypy/changeset/f1360c0d409b/
Log: Mark IdentityDict storage as being nonull.
diff --git a/pypy/objspace/std/identitydict.py
b/pypy/objspace/std/identitydict.py
--- a/pypy/objspace/std/identitydict.py
+++ b/pypy/objspace/std/identitydict.py
@@ -2,6 +2,7 @@
## dict strategy (see dict_multiobject.py)
from pypy.rlib import rerased
+from pypy.rlib.debug import mark_dict_non_null
from pypy.objspace.std.dictmultiobject import (AbstractTypedStrategy,
DictStrategy,
IteratorImplementation,
@@ -65,7 +66,9 @@
return wrapped
def get_empty_storage(self):
- return self.erase({})
+ d = {}
+ mark_dict_non_null(d)
+ return self.erase(d)
def is_correct_type(self, w_obj):
w_type = self.space.type(w_obj)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit