mirror of
https://github.com/python/cpython.git
synced 2026-05-27 14:53:25 -04:00
45ec02aed1
interning. I modified Oren's patch significantly, but the basic idea and most of the implementation is unchanged. Interned strings created with PyString_InternInPlace() are now mortal, and you must keep a reference to the resulting string around; use the new function PyString_InternImmortal() to create immortal interned strings.