I see a article about the immutable object.
It says when: variable = immutable As assign the immutable to a variable.
variable = immutable
for example
"Simple" immutable literals (and in particular, integers between -1 and 255) are interned, which means that even when bound to different names, they will still be the same object.
>>> a = 'foo' >>> b = 'foo' >>> a is b True