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
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
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: