summaryrefslogtreecommitdiffstats
path: root/Doc/data
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-20 06:48:14 (GMT)
committerGitHub <noreply@github.com>2023-06-20 06:48:14 (GMT)
commit03f1a132eeb34c738812161947ef171b21d58c25 (patch)
treeefb632b4c885e58425bfd563c92137ef60f7d72d /Doc/data
parent7f97c8e367869e2aebe9f28bc5f8d4ce36448878 (diff)
downloadcpython-03f1a132eeb34c738812161947ef171b21d58c25.zip
cpython-03f1a132eeb34c738812161947ef171b21d58c25.tar.gz
cpython-03f1a132eeb34c738812161947ef171b21d58c25.tar.bz2
gh-105922: Add PyImport_AddModuleRef() function (#105923)
* Add tests on PyImport_AddModuleRef(), PyImport_AddModule() and PyImport_AddModuleObject(). * pythonrun.c: Replace Py_XNewRef(PyImport_AddModule(name)) with PyImport_AddModuleRef(name).
Diffstat (limited to 'Doc/data')
-rw-r--r--Doc/data/refcounts.dat3
-rw-r--r--Doc/data/stable_abi.dat1
2 files changed, 4 insertions, 0 deletions
diff --git a/Doc/data/refcounts.dat b/Doc/data/refcounts.dat
index f5628ab..d707cc3 100644
--- a/Doc/data/refcounts.dat
+++ b/Doc/data/refcounts.dat
@@ -974,6 +974,9 @@ PyCoro_New:PyFrameObject*:frame:0:
PyCoro_New:PyObject*:name:0:
PyCoro_New:PyObject*:qualname:0:
+PyImport_AddModuleRef:PyObject*::+1:
+PyImport_AddModuleRef:const char*:name::
+
PyImport_AddModule:PyObject*::0:reference borrowed from sys.modules
PyImport_AddModule:const char*:name::
diff --git a/Doc/data/stable_abi.dat b/Doc/data/stable_abi.dat
index 80806ae..a3fde01 100644
--- a/Doc/data/stable_abi.dat
+++ b/Doc/data/stable_abi.dat
@@ -298,6 +298,7 @@ type,PyGetSetDef,3.2,,full-abi
var,PyGetSetDescr_Type,3.2,,
function,PyImport_AddModule,3.2,,
function,PyImport_AddModuleObject,3.7,,
+function,PyImport_AddModuleRef,3.13,,
function,PyImport_AppendInittab,3.2,,
function,PyImport_ExecCodeModule,3.2,,
function,PyImport_ExecCodeModuleEx,3.2,,