itertools 関数にはエラーはありませんが、完了すると何も出力されません。私のコードは次のとおりです。
def comb(iterable, r):
pool = tuple(iterable)
n = len(pool)
for indices in permutations(range(n), r):
if sorted(indices) == list(indices):
print (indices)
yield tuple(pool[i] for i in indices)
print ステートメントを含めましたが、計算された合計の組み合わせが出力されません。