Author: Alex Gaynor <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to