-
- Downloads
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().
Showing
- Doc/data/stable_abi.dat 0 additions, 1 deletionDoc/data/stable_abi.dat
- Doc/whatsnew/3.12.rst 4 additions, 0 deletionsDoc/whatsnew/3.12.rst
- Include/cpython/unicodeobject.h 3 additions, 10 deletionsInclude/cpython/unicodeobject.h
- Include/unicodeobject.h 0 additions, 4 deletionsInclude/unicodeobject.h
- Misc/NEWS.d/next/C API/2022-05-09-23-16-38.gh-issue-85858.VIcNDL.rst 2 additions, 0 deletions.../next/C API/2022-05-09-23-16-38.gh-issue-85858.VIcNDL.rst
- Misc/stable_abi.toml 1 addition, 0 deletionsMisc/stable_abi.toml
- Objects/unicodeobject.c 17 additions, 52 deletionsObjects/unicodeobject.c
Loading
Please register or sign in to comment