In article <[EMAIL PROTECTED]>,
 David Eppstein <[EMAIL PROTECTED]> wrote:

> def parti(aList,equalFunc):
>     eqv = []
>     for i in range(len(aList)):
>         print i,eqv
>         for L in eqv:
>             if equalFunc(aList[i],aList[L[0]]):
>                 L.append(i)
>                 break;
>         else:
>             eqv.append([i])

Um, take out the print, that was just there for me to debug my code.

-- 
David Eppstein
Computer Science Dept., Univ. of California, Irvine
http://www.ics.uci.edu/~eppstein/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to