summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-18 06:42:05 (GMT)
committerGitHub <noreply@github.com>2023-07-18 06:42:05 (GMT)
commit83ac1284909433f3f77c0a4f459996b1ba3f1a4d (patch)
tree82d86e1e07ab40873f6487625e10077baba76a15 /Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst
parent745492355b94d109e47827e5865846f25ae42d26 (diff)
downloadcpython-83ac1284909433f3f77c0a4f459996b1ba3f1a4d.zip
cpython-83ac1284909433f3f77c0a4f459996b1ba3f1a4d.tar.gz
cpython-83ac1284909433f3f77c0a4f459996b1ba3f1a4d.tar.bz2
bpo-42327: C API: Add PyModule_Add() function (GH-23443)
It is a fixed implementation of PyModule_AddObject() which consistently steals reference both on success and on failure.
Diffstat (limited to 'Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst')
-rw-r--r--Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst b/Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst
new file mode 100644
index 0000000..3d935ac
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-11-11-22-36-29.bpo-42327.ODSZBM.rst
@@ -0,0 +1 @@
+Add :func:`PyModule_Add` function: similar to :c:func:`PyModule_AddObjectRef` and :c:func:`PyModule_AddObject`, but always steals a reference to the value.