[pypy-commit] pypy list-strategies: Use unresizable list here (translation fix)
l.diekmann
noreply at buildbot.pypy.org
Fri Sep 23 13:12:24 CEST 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
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(
More information about the pypy-commit
mailing list