else matches for iterator in iters try matches append iterator next ex

1
2
3
4
5
6
7
8
else:
matches = []
for iterator in iters:
try:
matches.append(iterator.next())
except StopIteration:
iters.remove(iterator)
matches = sorted(matches, match_compare)