Interesting list Validity (True/False)

Carsten Haese carsten at uniqsys.com
Sat May 12 21:10:54 EDT 2007


On Sat, 2007-05-12 at 17:55 -0700, mensanator at aol.com wrote:
> 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>

That doesn't explain what you mean. How does "if arg==True" test whether
"a list is a boolean"?

-- 
Carsten Haese
http://informixdb.sourceforge.net





More information about the Python-list mailing list