]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422)
authorVictor Stinner <vstinner@python.org>
Thu, 6 Jan 2022 07:53:44 +0000 (08:53 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Jan 2022 07:53:44 +0000 (08:53 +0100)
commit35d6540c904ef07b8602ff014e520603f84b5886
tree043aa48a925bf280fd2667aa3a3c62aa2e7fd5e6
parente5894ca8fd05e6a6df1033025b9093b68baa718d
bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422)

This reverts commit ea251806b8dffff11b30d2182af1e589caf88acf.

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.
Include/internal/pycore_unicodeobject.h
Misc/NEWS.d/next/Core and Builtins/2022-01-05-17-13-47.bpo-46006.hdH5Vn.rst [new file with mode: 0644]
Objects/typeobject.c
Objects/unicodeobject.c