Interesting list Validity (True/False)

mensanator at aol.com mensanator at aol.com
Sat May 12 20:55:40 EDT 2007


On May 12, 12:56?pm, Carsten Haese <cars... at uniqsys.com> wrote:
> On Fri, 2007-05-11 at 14:26 -0700, mensana... at aol.com wrote:
> > if arg==True:
>
> > tests the type property (whether a list is a boolean).
>
> That sounds nonsensical and incorrect. Please explain what you mean.

<quote>
Sec 2.2.3:
Objects of different types, except different numeric types and
different string types, never compare equal;
</quote>

>
> "if arg==True" tests whether the object known as arg is equal to the
> object known as True.
>
> Regards,
>
> --
> Carsten Haesehttp://informixdb.sourceforge.net





More information about the Python-list mailing list