Python intern for non-strings

Viewed 1783

Why is Python's intern built-in only for strings? It should be possible to extend intern to classes that are hashable and comparable, right?

3 Answers
Related