Skip to content

Commit 68bb20c

Browse files
committed
Repeat after tuplizing
1 parent 198cc5d commit 68bb20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

more_itertools/more.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5499,7 +5499,7 @@ def random_ordered_range(*args):
54995499

55005500
def random_ordered_product(*iterables, repeat=1):
55015501
"Return :func:`product` tuples in randomly shuffled order."
5502-
pools = tuple(map(tuple, iterables * repeat))
5502+
pools = tuple(map(tuple, iterables)) * repeat
55035503
n = prod(map(len, pools))
55045504
for index in _random_ordered_indices(n):
55055505
yield nth_product(index, *pools)

0 commit comments

Comments
 (0)