The operator is and is not test for object identity: x is y is true if and
only if x and y are the same objects.

 

>>> x = 1

>>> y = 1

>>> x is y

True

 

Is this right? Why? Thanks.

 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to