]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45061: Detect refcount bug on empty string singleton (GH-28504)
authorVictor Stinner <vstinner@python.org>
Tue, 21 Sep 2021 21:43:09 +0000 (23:43 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 21:43:09 +0000 (23:43 +0200)
commit86f28372b17c8c56539e9543bea9f125ab11b8aa
tree729bdf678008eeafa8934225c2f02c372d8586db
parent06e1773c8d8fe375423bb7fcf5922b49bc737b75
bpo-45061: Detect refcount bug on empty string singleton (GH-28504)

Detect refcount bugs in C extensions when the empty Unicode string
singleton is destroyed by mistake.

* Move forward declarations to the top of unicodeobject.c.
* Simplifiy unicode_is_singleton().
Misc/NEWS.d/next/Core and Builtins/2021-09-21-22-27-25.bpo-45061.5IOUf0.rst
Objects/unicodeobject.c