Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As usual, Éric is right but delphic (pythic ?)... Try this

L=[]
S=set(L)
for u in (your generator):
    s=set(u)
    if s not in S:
        L.extend(u) ## Maybe L.extend(copy(u)) if sharing structures may be a problem later...
        S.add((s)
L

At the end of execution, L should contain lists differing by at least one element.