Author: Alex Gaynor <alex.gay...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit