not and is not problem

superpollo utente at esempio.net
Mon Jan 18 16:43:25 CET 2010


hi:

#!/usr/bin/env python
data = "seq=123"
name , value = data.split("=")
print name
print value
if not name == "seq":
     print "DOES NOT PRINT OF COURSE..."
if name is not "seq":
     print "WTF! WHY DOES IT PRINT?"

help please.

bye



More information about the Python-list mailing list