mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-85858: Remove PyUnicode_InternImmortal() function (#92579)
Remove the PyUnicode_InternImmortal() function and the SSTATE_INTERNED_IMMORTAL macro. The PyUnicode_InternImmortal() function is still exported in the stable ABI. The function is removed from the API. PyASCIIObject.state.interned size is now a single bit, rather than 2 bits. Keep SSTATE_NOT_INTERNED and SSTATE_INTERNED_MORTAL macros for backward compatibility, but no longer use them internally since the interned member is now a single bit and so can only have two values (interned or not interned). Update stats of _PyUnicode_ClearInterned().
This commit is contained in:
parent
f62ad4f2c4
commit
059b5baf98
7 changed files with 27 additions and 67 deletions
1
Doc/data/stable_abi.dat
generated
1
Doc/data/stable_abi.dat
generated
|
@ -762,7 +762,6 @@ function,PyUnicode_FromWideChar,3.2,,
|
|||
function,PyUnicode_GetDefaultEncoding,3.2,,
|
||||
function,PyUnicode_GetLength,3.7,,
|
||||
function,PyUnicode_InternFromString,3.2,,
|
||||
function,PyUnicode_InternImmortal,3.2,,
|
||||
function,PyUnicode_InternInPlace,3.2,,
|
||||
function,PyUnicode_IsIdentifier,3.2,,
|
||||
function,PyUnicode_Join,3.2,,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue