On Sat, 31 Jan 2009 12:16:19 +0000 AJ Ostergaard <a...@cubbyhole.net> wrote: > >>> '' and True > '' > > Surely that should be False?!?
Why? The first value evaluates to False in a boolean context and thus is returned in the above statement due to short circuit evaluation but is not itself False. You wouldn't expect the following statement to be True. >>> '' is False False -- D'Arcy J.M. Cain <da...@druid.net> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list