commit | 45ec02aed14685c353e55841b5acbc0dadee76f8 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Aug 19 21:43:18 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Aug 19 21:43:18 2002 +0000 |
tree | 0c146fdf0d488f279f0baf64b0f1fa0484274a73 | |
parent | d8dbf847b6a819ef73d7bf0c05eafbdb9aee9956 [diff] |
SF patch 576101, by Oren Tirosh: alternative implementation of 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.