Filtering a Python list to uniques

2008-03-25 Thread kellygreer1
What is the best way to filter a Python list to its unique members? I tried some method using Set but got some "unhashable" error. lstone = [ 1, 2, 3, 3, 4, 5, 5, 6 ] # how do i reduce this to lsttwo = [ 1, 2, 3, 4, 5, 6 ] Is there a page on this in the Python in a Nutshell or the Python Cookbook

Re: Filtering a Python list to uniques

2008-03-26 Thread kellygreer1
On Mar 26, 5:45 am, hellt <[EMAIL PROTECTED]> wrote: > On 26 ÍÁÒ, 02:30,kellygreer1<[EMAIL PROTECTED]> wrote: > > > What is the best way to filter a Python list to its unique members? > > I tried some method using Set but got some "unhashable" error.