[pypy-commit] pypy list-strategies: Need to make a fixed list here

l.diekmann noreply at buildbot.pypy.org
Fri Sep 23 13:12:34 CEST 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: list-strategies
Changeset: r47474:05c02d1ce657
Date: 2011-03-16 13:26 +0100
http://bitbucket.org/pypy/pypy/changeset/05c02d1ce657/

Log:	Need to make a fixed list here

diff --git a/pypy/objspace/std/marshal_impl.py b/pypy/objspace/std/marshal_impl.py
--- a/pypy/objspace/std/marshal_impl.py
+++ b/pypy/objspace/std/marshal_impl.py
@@ -300,7 +300,7 @@
 register(TYPE_TUPLE, unmarshal_Tuple)
 
 def marshal_w__List(space, w_list, m):
-    items = w_list.getitems()
+    items = w_list.getitems()[:]
     m.put_tuple_w(TYPE_LIST, items)
 
 def unmarshal_List(space, u, tc):


More information about the pypy-commit mailing list