This isn't guaranteed by the language, even if CPython does it. What is guaranteed is intern('abc') is intern('abc').
Re:Python Lists vs. Tuples
by infinite8s on Saturday August 20, 2016 @11:15AM
(#12326937)
String literals up to a certain size are reused.
Oh, cool, I didn't know that. I think in Ruby all symbols are reused, whether they are literals or constructed programatically. (Unlike Common Lisp symbols which can also de 'uninterned' if they are not literals.)
In Python, string literals are reused, if that is what you meant.