Python porównaj każdą pozycję jednej listy

import itertools
for a, b in itertools.combinations(mylist, 2):
    compare(a, b)
garzj