string interning in python code example
Example: string interning in python
>>> import sys>>> c = sys.intern('Y'*4097)>>> d = sys.intern('Y'*4097)>>> c is dTrue
>>> import sys>>> c = sys.intern('Y'*4097)>>> d = sys.intern('Y'*4097)>>> c is dTrue