checking if an object IS in a list

John Machin sjmachin at
Sun Jul 20 23:18:34 CEST 2008

On Jul 21, 4:33 am, nicolas.pource... at wrote:
> > (1) You are searching through lists to find float objects by identity,
> > not by value
> ????

You wrote """
I used short lists (a list of 20 floats) and the element
checked was not in the list.
(That was the case I usually deals with in my code.)

More information about the Python-list mailing list