diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-20 06:48:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 06:48:14 (GMT) |
commit | 03f1a132eeb34c738812161947ef171b21d58c25 (patch) | |
tree | efb632b4c885e58425bfd563c92137ef60f7d72d /Doc/data | |
parent | 7f97c8e367869e2aebe9f28bc5f8d4ce36448878 (diff) | |
download | cpython-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.dat | 3 | ||||
-rw-r--r-- | Doc/data/stable_abi.dat | 1 |
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,, |