Author: Mark Young <[email protected]>
Branch: 33_fix_itertools
Changeset: r83628:5d1307ba83ee
Date: 2016-03-13 13:31 -0400
http://bitbucket.org/pypy/pypy/changeset/5d1307ba83ee/
Log: Fixed it in pyinteractive (and fixed a correctness issue), but
translation is still broken.
diff --git a/pypy/module/itertools/interp_itertools.py
b/pypy/module/itertools/interp_itertools.py
--- a/pypy/module/itertools/interp_itertools.py
+++ b/pypy/module/itertools/interp_itertools.py
@@ -1074,7 +1074,7 @@
def descr_reduce(self, space):
if not self.stopped:
- gears = [space.newtuple([gear]) for gear in self.gears]
+ gears = [space.newtuple(gear) for gear in self.gears]
result_w = [
space.type(self),
space.newtuple(gears)
@@ -1087,7 +1087,7 @@
else:
result_w = [
space.type(self),
- space.newtuple([])
+ space.newtuple([()])
]
return space.newtuple(result_w)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit