>>> t=(1,2,3)
>>> t+t
(1, 2, 3, 1, 2, 3)
>>> t*2
(1, 2, 3, 1, 2, 3)
>>> t+t==t*2
True
>>> t+t is t*2
False
>>> id(t+t)
49172744L
>>> id(t*2)
49172744L
but they also have same id (t+t),(t*2). Why are they not equal
>>> t=(1,2,3)
>>> t+t
(1, 2, 3, 1, 2, 3)
>>> t*2
(1, 2, 3, 1, 2, 3)
>>> t+t==t*2
True
>>> t+t is t*2
False
>>> id(t+t)
49172744L
>>> id(t*2)
49172744L
but they also have same id (t+t),(t*2). Why are they not equal