[pypy-commit] pypy dynamic-specialized-tuple: (alex. fijal), fix translation?

alex_gaynor noreply at buildbot.pypy.org
Tue Mar 13 09:15:39 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: dynamic-specialized-tuple
Changeset: r53437:969909d5e462
Date: 2012-03-13 01:14 -0700
http://bitbucket.org/pypy/pypy/changeset/969909d5e462/

Log:	(alex. fijal), fix translation?

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
@@ -8,7 +8,6 @@
 from pypy.objspace.std.slicetype import unwrap_start_stop
 from pypy.objspace.std import slicetype
 from pypy.interpreter import gateway
-from pypy.rlib.debug import make_sure_not_resized
 
 
 class W_AbstractTupleObject(W_Object):
@@ -36,7 +35,7 @@
         items_w = [None] * self.length()
         for i in xrange(self.length()):
             items_w[i] = self.getitem(space, i)
-        return items_w
+        return items_w[:]
 
     def getitems_copy(self, space):
         return self.tolist(space)


More information about the pypy-commit mailing list