Re: Noobie Starting New Project

2005-09-22 Thread Rubinho
Having looked in these sorts of areas before and having a general interest in it, I'd like to make some suggestions. I wouldn't go an implement OBD-II yourself in Python, especially not in a serial port. There are in fact (at least) 4 different OBD-II protocols that I won't rattle off the names o

Re: Removing duplicates from a list

2005-09-14 Thread Rubinho
Peter Otten wrote: > Rubinho wrote: > > > I've a list with duplicate members and I need to make each entry > > unique. > > > > I've come up with two ways of doing it and I'd like some input on what > > would be considered more pythonic (or at leas

Removing duplicates from a list

2005-09-14 Thread Rubinho
I've a list with duplicate members and I need to make each entry unique. I've come up with two ways of doing it and I'd like some input on what would be considered more pythonic (or at least best practice). Method 1 (the traditional approach) for x in mylist: if mylist.count(x) > 1: