summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-02-19 14:08:54 (GMT)
committerGitHub <noreply@github.com>2021-02-19 14:08:54 (GMT)
commita486054b24658fa623e030ddd4cc0cbfcac54ab0 (patch)
tree54fc80da26c870385352958e0da434174bb87b2d /Misc/NEWS.d
parentacde3f1530f1664c9ec7f22e16a7f54c5191e4a6 (diff)
downloadcpython-a486054b24658fa623e030ddd4cc0cbfcac54ab0.zip
cpython-a486054b24658fa623e030ddd4cc0cbfcac54ab0.tar.gz
cpython-a486054b24658fa623e030ddd4cc0cbfcac54ab0.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/C API/2021-02-19-14-28-26.bpo-43270.UKx4XN.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-02-19-14-28-26.bpo-43270.UKx4XN.rst b/Misc/NEWS.d/next/C API/2021-02-19-14-28-26.bpo-43270.UKx4XN.rst
new file mode 100644
index 0000000..ab8c977
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-02-19-14-28-26.bpo-43270.UKx4XN.rst
@@ -0,0 +1,2 @@
+Remove the private ``_PyErr_OCCURRED()`` macro: use the public
+:c:func:`PyErr_Occurred` function instead.