[Tutor] is vs. ==

Ian! imcmeans@shaw.ca
Thu, 18 Apr 2002 20:34:36 -0700


What's the difference between "is" and "=="? I always assumed they were the
same.

>>> __name__ == '__main__'
1
>>> __name__ is '__main__'
0
>>>