[Python-Dev] Interning string subtype instances (original) (raw)
Mike Klaas mike.klaas at gmail.com
Mon Feb 12 19:59:40 CET 2007
- Previous message: [Python-Dev] Interning string subtype instances
- Next message: [Python-Dev] Interning string subtype instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Interning string subtype instances
- Next message: [Python-Dev] Interning string subtype instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]