[pypy-commit] pypy set-strategies: another way of creating a frozen set
l.diekmann
noreply at buildbot.pypy.org
Thu Nov 10 13:49:52 CET 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49166:35fb3d7fec2a
Date: 2011-05-18 17:28 +0200
http://bitbucket.org/pypy/pypy/changeset/35fb3d7fec2a/
Log: another way of creating a frozen set
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
@@ -713,7 +713,7 @@
def _convert_set_to_frozenset(space, w_obj):
#XXX can be optimized
if space.is_true(space.isinstance(w_obj, space.w_set)):
- w_frozen = instantiate(W_FrozensetObject)
+ w_frozen = W_FrozensetObject(space, None)
w_frozen.strategy = w_obj.strategy
w_frozen.sstorage = w_obj.sstorage
return w_frozen
More information about the pypy-commit
mailing list