bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" by vstinner · Pull Request #30422 · python/cpython
vstinner
changed the title
Revert "bpo-40521: Per-interpreter interned strings (GH-20085)"
bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)"
)" This reverts commit ea25180. Keep "assert(interned == NULL);" in _PyUnicode_Fini() but only for the main interpreter. Keep _PyUnicode_ClearInterned() changes avoiding the creation of a temporary Python list object.
vstinner added a commit that referenced this pull request
…GH-20085)" (GH-30422) (GH-30425) This reverts commit ea25180. Keep "assert(interned == NULL);" in _PyUnicode_Fini(), but only for the main interpreter. Keep _PyUnicode_ClearInterned() changes avoiding the creation of a temporary Python list object. Leave the PyInterpreterState structure unchanged to keep the ABI backward compatibility with Python 3.10.0: rename the "interned" member to "unused_interned". (cherry picked from commit 35d6540)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters