Author: Lukas Diekmann <[email protected]>
Branch: list-strategies
Changeset: r47465:eb82a1290057
Date: 2011-03-15 16:25 +0100
http://bitbucket.org/pypy/pypy/changeset/eb82a1290057/

Log:    Use unresizable list here (translation fix)

diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -402,7 +402,7 @@
         if isinstance(w_obj, W_TupleObject):
             t = w_obj.wrappeditems
         elif isinstance(w_obj, W_ListObject):
-            t = w_obj.getitems()
+            t = w_obj.getitems()[:]
         else:
             if unroll:
                 return make_sure_not_resized(ObjSpace.unpackiterable_unroll(
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to