Re: [Tutor] Best method for filtering lists in lists...

2006-12-16 Thread Alan Gauld
"Roel Schroeven" <[EMAIL PROTECTED]> wrote >> In that case put the inner lists in a Set. That will eliminate >> duplicates. > > That won't work: list objects are unhashable so you can't put them > in a > set. You'll have to convert them to tuples first. Hmm, I took that a self evident but I gue

Re: [Tutor] pysvn samples

2006-12-16 Thread Bill Burns
> I am looking to experiment with pysvn and was wondering if anyone knew > of a location for code samples/snippets using it? > > I'm reviewing the pysvn programmers guide and tutorial but some live > examples would be great. > > If anyone can point me at something, it would be appreciated. > Hi

Re: [Tutor] Best method for filtering lists in lists...

2006-12-16 Thread Luke Paireepinart
Roel Schroeven wrote: > Alan Gauld schreef: > >> "Chris Hengge" <[EMAIL PROTECTED]> wrote >> >> >>> I'm terming a redundant list just like I posted in the original >>> message: >>> [[1,2,3], [4,5,6],[1,2,3]] >>> >>> [0][0] and [0][2] are redundant, so I only want to keep one of them. >>>

Re: [Tutor] Best method for filtering lists in lists...

2006-12-16 Thread Roel Schroeven
Alan Gauld schreef: > "Chris Hengge" <[EMAIL PROTECTED]> wrote > >> I'm terming a redundant list just like I posted in the original >> message: >> [[1,2,3], [4,5,6],[1,2,3]] >> >> [0][0] and [0][2] are redundant, so I only want to keep one of them. > > In that case put the inner lists in a Set.