]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43270: Remove private _PyErr_OCCURRED() macro (GH-24579)
authorVictor Stinner <vstinner@python.org>
Fri, 19 Feb 2021 14:08:54 +0000 (15:08 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 14:08:54 +0000 (15:08 +0100)
commita486054b24658fa623e030ddd4cc0cbfcac54ab0
tree54fc80da26c870385352958e0da434174bb87b2d
parentacde3f1530f1664c9ec7f22e16a7f54c5191e4a6
bpo-43270: Remove private _PyErr_OCCURRED() macro (GH-24579)

Remove the private _PyErr_OCCURRED() macro: use the public
PyErr_Occurred() function instead.

CPython internals must use the internal _PyErr_Occurred(tstate)
function instead: it is the most efficient way to check if an
exception was raised.
Include/pyerrors.h
Misc/NEWS.d/next/C API/2021-02-19-14-28-26.bpo-43270.UKx4XN.rst [new file with mode: 0644]
Python/ceval.c