checking if an object IS in a list

nicolas.pourcelot at gmail.com nicolas.pourcelot at gmail.com
Mon Jul 21 00:17:48 CEST 2008


On 20 juil, 23:18, John Machin <sjmac... at lexicon.net> wrote:
> On Jul 21, 4:33 am, nicolas.pource... at gmail.com 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.)
> """

:-D



More information about the Python-list mailing list