◐ Shell
clean mode source ↗

bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" by vstinner · Pull Request #30422 · python/cpython

@vstinner vstinner changed the title Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)"

Jan 5, 2022
)"

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.

ericsnowcurrently

vstinner added a commit that referenced this pull request

Jan 6, 2022
…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)