[pypy-commit] pypy non-null-app-dict: Mark this object as non-null as well

fijal noreply at buildbot.pypy.org
Tue Jun 28 15:27:19 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: non-null-app-dict
Changeset: r45158:c5bb04c917aa
Date: 2011-06-28 15:33 +0200
http://bitbucket.org/pypy/pypy/changeset/c5bb04c917aa/

Log:	Mark this object as non-null as well

diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -112,7 +112,7 @@
 # some helper functions
 
 def newset(space):
-    return r_dict(space.eq_w, space.hash_w)
+    return r_dict(space.eq_w, space.hash_w, force_non_null=True)
 
 def make_setdata_from_w_iterable(space, w_iterable=None):
     """Return a new r_dict with the content of w_iterable."""


More information about the pypy-commit mailing list