Hello, 
I am having problem in using is. Here is what i am doing.

x=''
if x is None or x is '':
        return 1

The above statement does not return value 1.

If i changed the above check to 
if x == None or x == '':
        return 1
Now it works fine.

Any idea. What is happening here. I am using python 2.4.4 on ubuntu.

Mike


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to