question about True values

John Salerno johnjsal at NOSPAMgmail.com
Wed Oct 25 15:24:35 EDT 2006


Robert Kern wrote:

> They are, indeed, quite different things. Finding the truth value of an 
> object is not the same thing as testing if the object is equal to the 
> object True.

Yeah, I had this in the back of my mind, but I was thinking that this 
test would be written as

if s is True

And I know that one is very different from the others.



More information about the Python-list mailing list