Author: Maciej Fijalkowski <fij...@gmail.com> Branch: dynamic-specialized-tuple Changeset: r53443:72475a043244 Date: 2012-03-13 01:34 -0700 http://bitbucket.org/pypy/pypy/changeset/72475a043244/
Log: fix translation, maybe diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py --- a/pypy/objspace/std/listobject.py +++ b/pypy/objspace/std/listobject.py @@ -1046,7 +1046,7 @@ if isinstance(w_iterable, W_ListObject): w_list.extend(w_iterable) elif isinstance(w_iterable, W_TupleObject): - w_list.extend(W_ListObject(space, w_iterable.tolist_resized(space))) + w_list.extend(W_ListObject(space, w_iterable.getitems_copy(space))) else: _init_from_iterable(space, w_list, w_iterable) diff --git a/pypy/objspace/std/tupleobject.py b/pypy/objspace/std/tupleobject.py --- a/pypy/objspace/std/tupleobject.py +++ b/pypy/objspace/std/tupleobject.py @@ -37,12 +37,9 @@ items_w[i] = self.getitem(space, i) return items_w - def tolist_resized(self, space): + def getitems_copy(self, space): return self.tolist(space)[:] - def getitems_copy(self, space): - return self.tolist(space) - def length(self): return self.tuplestorage.getlength() _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit