not and is not problem
D'Arcy J.M. Cain
darcy at druid.net
Mon Jan 18 11:03:31 EST 2010
On Mon, 18 Jan 2010 16:43:25 +0100
superpollo <utente at esempio.net> wrote:
> hi:
> if name is not "seq":
> print "WTF! WHY DOES IT PRINT?"
Perhaps they aren't the same object. Some values are guaranteed to be
the same (e.g. True and False) but not all. Try "!=" instead of "is
not" in that experssion.
--
D'Arcy J.M. Cain <darcy at 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.
More information about the Python-list
mailing list