[Python-Dev] Interning string subtype instances (original) (raw)

Mike Klaas mike.klaas at gmail.com
Mon Feb 12 19:59:40 CET 2007


On 2/12/07, Hrvoje Nikšić <hrvoje.niksic at avl.com> wrote:

cause problems for other users of the interned string. I agree with the reasoning, but propose a different solution: when interning an instance of a string subtype, PyStringInternInPlace could simply intern a copy.

Interning currently requires an external reference to prevent garbage collection (I believe). What will hold a reference to the string copy?

-Mike



More information about the Python-Dev mailing list