]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42979: Enhance abstract.c assertions checking slot result (GH-24352)
authorVictor Stinner <vstinner@python.org>
Wed, 27 Jan 2021 16:39:16 +0000 (17:39 +0100)
committerGitHub <noreply@github.com>
Wed, 27 Jan 2021 16:39:16 +0000 (16:39 +0000)
commitc9b8e9c421b57acdcaf24fab0c93bc29b3ef7c67
treef174c17b926bd968bf19ddd330524bda46e7aa8e
parenteeb701adc0fc29ba803fddf133d917ff45639a00
bpo-42979: Enhance abstract.c assertions checking slot result (GH-24352)

* bpo-42979: Enhance abstract.c assertions checking slot result

Add _Py_CheckSlotResult() function which fails with a fatal error if
a slot function succeeded with an exception set or failed with no
exception set: write the slot name, the type name and the current
exception (if an exception is set).
Include/cpython/abstract.h
Include/internal/pycore_object.h
Lib/test/test_capi.py
Modules/_testcapimodule.c
Objects/abstract.c
Objects/call.c