Re: Interesting list Validity (True/False)



On Fri, 2007-05-11 at 14:26 -0700, mensanator@xxxxxxx wrote:
if arg==True:

tests the type property (whether a list is a boolean).

That sounds nonsensical and incorrect. Please explain what you mean.

"if arg==True" tests whether the object known as arg is equal to the
object known as True.

Regards,

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


.



Relevant Pages

  • isNaN(null) == false
    ... Small glitch in JavaScript is related to isNaN() boolean ... it returns true which is incorrect. ...
    (comp.lang.javascript)
  • Re: while var, but var ==16 != true
    ... false in python but other numbers have no boolean value so why doesnt ... Because your statement is incorrect. ... In the context of Boolean operations, ... False, None, numeric zero of all types, and empty strings ...
    (comp.lang.python)
  • RE: how to get Shift key status
    ... Sorry, above posting is incorrect. ... Only returns true if Shift is only modifier key pressed, ... dim shiftPressed as Boolean = cBool ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Generating Compiler Warnings
    ... > John Harrison wrote: ... >> I believe that is completely incorrect. ... The operations only work because the boolean is converted to an integer. ... operations are not valid on your custom boolean class you want people to be ...
    (comp.lang.cpp)