Hey guys, this maybe a stupid question, but I can't seem to find the
result anywhere online. When is the right time to use 'is' and when
should we use '=='?
Thanks alot~
--
http://mail.python.org/mailman/listinfo/python-list
It's really strange,
if
a = 1
b = 1
a is b ==> True
the same thing applies for strings, but not for dict, lists or tuples
I think the 'is' operator is useful for objects only, not for primitive
types,
I think I solved the mystery behind my bugged code =)
--
http://mail.python.org/mailman/listi