Add interning of unicode strings by copying the functionality from

stringobject.c.

Intern "True" and "False" in bool_repr() again as it was in the
8bit string era.
This commit is contained in:
Walter Dörwald 2007-05-25 13:52:07 +00:00
parent 34a042d301
commit 1680713e52
5 changed files with 158 additions and 7 deletions

View file

@ -48,10 +48,6 @@ typedef struct {
*/
} PyStringObject;
#define SSTATE_NOT_INTERNED 0
#define SSTATE_INTERNED_MORTAL 1
#define SSTATE_INTERNED_IMMORTAL 2
PyAPI_DATA(PyTypeObject) PyBaseString_Type;
PyAPI_DATA(PyTypeObject) PyString_Type;