]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45061: Detect refcount bug on empty tuple singleton (GH-28503)
authorVictor Stinner <vstinner@python.org>
Tue, 21 Sep 2021 21:04:34 +0000 (23:04 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 21:04:34 +0000 (23:04 +0200)
commit79a31480992c3fa5890fc7a6c5d9af6d337d5844
treea3ef89bb0340669e86c52f5b924cfb0e71845956
parentf604cf1c377a7648e0686044e6e49900bfc9feef
bpo-45061: Detect refcount bug on empty tuple singleton (GH-28503)

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

Add the _Py_FatalRefcountErrorFunc() function.
Include/internal/pycore_pyerrors.h
Misc/NEWS.d/next/Core and Builtins/2021-09-21-22-27-25.bpo-45061.5IOUf0.rst [new file with mode: 0644]
Objects/boolobject.c
Objects/object.c
Objects/tupleobject.c
Python/pylifecycle.c