[pypy-commit] pypy default: translation fix
arigo
noreply at buildbot.pypy.org
Tue Nov 1 13:04:19 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r48643:1d8951851148
Date: 2011-11-01 11:40 +0100
http://bitbucket.org/pypy/pypy/changeset/1d8951851148/
Log: translation fix
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -783,7 +783,8 @@
if isinstance(w_iterator, GeneratorIterator):
return w_iterator.unpackiterable()
# /xxx
- return self._unpackiterable_unknown_length(w_iterator, w_iterable)
+ lst_w = self._unpackiterable_unknown_length(w_iterator, w_iterable)
+ return lst_w[:] # make the resulting list resizable
else:
return self._unpackiterable_known_length(w_iterator,
expected_length)
More information about the pypy-commit
mailing list