Author: Armin Rigo <[email protected]>
Branch:
Changeset: r48644:0ffcdb4ec169
Date: 2011-11-01 11:41 +0100
http://bitbucket.org/pypy/pypy/changeset/0ffcdb4ec169/
Log: bah.
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -783,11 +783,11 @@
if isinstance(w_iterator, GeneratorIterator):
return w_iterator.unpackiterable()
# /xxx
- lst_w = self._unpackiterable_unknown_length(w_iterator, w_iterable)
+ return self._unpackiterable_unknown_length(w_iterator, w_iterable)
+ else:
+ lst_w = self._unpackiterable_known_length(w_iterator,
+ expected_length)
return lst_w[:] # make the resulting list resizable
- else:
- return self._unpackiterable_known_length(w_iterator,
- expected_length)
@jit.dont_look_inside
def _unpackiterable_unknown_length(self, w_iterator, w_iterable):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit