[pypy-commit] pypy dynamic-specialized-tuple: fix translation, maybe

fijal noreply at buildbot.pypy.org
Tue Mar 13 09:35:30 CET 2012


Author: Maciej Fijalkowski <fijall at 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()
 


More information about the pypy-commit mailing list