summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-05-31 11:17:06 (GMT)
committerGitHub <noreply@github.com>2023-05-31 11:17:06 (GMT)
commit579c41c10224a004c3e89ed9088771325c1c1a98 (patch)
tree44588e43b779dd64f0bb9eb526c3c02a9301299d /Misc/NEWS.d
parentadccff3b3f9fbdb58cb4b8fde92456e6dd078af0 (diff)
downloadcpython-579c41c10224a004c3e89ed9088771325c1c1a98.zip
cpython-579c41c10224a004c3e89ed9088771325c1c1a98.tar.gz
cpython-579c41c10224a004c3e89ed9088771325c1c1a98.tar.bz2
gh-105107: Remove PyEval_CallFunction() function (#105108)
Remove 4 functions from the C API, deprecated in Python 3.9: * PyEval_CallObjectWithKeywords() * PyEval_CallObject() * PyEval_CallFunction() * PyEval_CallMethod() Keep 3 functions in the stable ABI: * PyEval_CallObjectWithKeywords() * PyEval_CallFunction() * PyEval_CallMethod()
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/C API/2023-05-30-19-11-09.gh-issue-105107.YQwMnm.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-05-30-19-11-09.gh-issue-105107.YQwMnm.rst b/Misc/NEWS.d/next/C API/2023-05-30-19-11-09.gh-issue-105107.YQwMnm.rst
new file mode 100644
index 0000000..8423f47
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2023-05-30-19-11-09.gh-issue-105107.YQwMnm.rst
@@ -0,0 +1,9 @@
+Remove functions deprecated in Python 3.9.
+
+* ``PyEval_CallObject()``, ``PyEval_CallObjectWithKeywords()``: use
+ :c:func:`PyObject_CallNoArgs` and :c:func:`PyObject_Call` (positional
+ arguments must not be *NULL*) instead.
+* ``PyEval_CallFunction()``: use :c:func:`PyObject_CallFunction` instead.
+* ``PyEval_CallMethod()``: use :c:func:`PyObject_CallMethod` instead.
+
+Patch by Victor Stinner.