What values are considered false?

Jason caljason76 at yahoo.com
Wed Feb 20 20:27:05 EST 2002


In my experimentation 0, None, "", [], and () all seem to be
considered false.  Just to confound me none of them are == to each
other.  Coming from a Scheme world this is confusing.  Are there any
other values that are false?  Why aren't () and "" the same thing? 
Don't both describe an immutable sequence of values (basically, why
aren't strings either lists or tuples)?



More information about the Python-list mailing list