Interning and Object Caching - CPython Runtime Optimizations at Engineering Depth
Master CPython's object caching and interning mechanisms including the small integer cache (−5 to 256), string interning rules, sys.intern(), None/True/False singletons, tuple caching, reference counting with sys.getrefcount(), __slots__ memory optimization, and the zombie id pitfall.
