mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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:
parent
34a042d301
commit
1680713e52
5 changed files with 158 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue