Author: Mark Young <marky1...@gmail.com> Branch: 33_fix_itertools Changeset: r83629:fefbe7b206cb Date: 2016-03-13 18:57 -0400 http://bitbucket.org/pypy/pypy/changeset/fefbe7b206cb/
Log: Fixed translation. 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 @@ -1007,7 +1007,7 @@ class W_Product(W_Root): def __init__(self, space, args_w, w_repeat): self.gears = [ - space.unpackiterable(arg_w) for arg_w in args_w + space.unpackiterable(arg_w)[:] for arg_w in args_w ] * space.int_w(w_repeat) # for gear in self.gears: @@ -1087,7 +1087,7 @@ else: result_w = [ space.type(self), - space.newtuple([()]) + space.newtuple([space.newtuple([])]) ] return space.newtuple(result_w) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit