]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)
authorPetr Viktorin <encukou@gmail.com>
Tue, 16 Jul 2024 13:17:29 +0000 (15:17 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2024 13:17:29 +0000 (15:17 +0200)
commit956270d08d5c23f59937e2f29f8e0b7f63d68afd
tree2477bb7747dba50a6701f3ff72f07756880c74cb
parenta0b205bba555dd9c702b9a856cd9a8153277c9b0
gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)

Older stable ABI extensions are allowed to make immortal objects mortal.
Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
Misc/NEWS.d/next/C API/2024-07-04-13-23-27.gh-issue-113601.K3RLqp.rst [new file with mode: 0644]
Objects/unicodeobject.c