[pypy-commit] pypy dynamic-specialized-tuple: for now, promote this

alex_gaynor noreply at buildbot.pypy.org
Tue Apr 24 18:07:39 CEST 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: dynamic-specialized-tuple
Changeset: r54727:af7067c9c2a3
Date: 2012-04-24 18:02 +0200
http://bitbucket.org/pypy/pypy/changeset/af7067c9c2a3/

Log:	for now, promote this

diff --git a/pypy/objspace/std/tupletype.py b/pypy/objspace/std/tupletype.py
--- a/pypy/objspace/std/tupletype.py
+++ b/pypy/objspace/std/tupletype.py
@@ -100,8 +100,9 @@
     for i, w_item in enumerate(list_w):
         shape_chars[i] = get_char_from_obj(space, w_item)
 
-    shape = space.str_w(space.new_interned_str("".join(shape_chars)))
-    jit.promote(shape)
+    w_shape = space.new_interned_str("".join(shape_chars))
+    jit.promote(w_shape)
+    shape = space.str_w(w_shape)
     storage = UntypedStorage(shape)
     for i, w_item in enumerate(list_w):
         store_obj(space, storage, shape[i], i, w_item)


More information about the pypy-commit mailing list