Python comparer chaque élément d'une liste

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