is operator

Metal Zong metalzong at
Sun Mar 9 15:34:03 CET 2008

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



Is this right? Why? Thanks.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list