]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105922: Add PyImport_AddModuleRef() function (#105923)
authorVictor Stinner <vstinner@python.org>
Tue, 20 Jun 2023 06:48:14 +0000 (08:48 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Jun 2023 06:48:14 +0000 (08:48 +0200)
commit03f1a132eeb34c738812161947ef171b21d58c25
treeefb632b4c885e58425bfd563c92137ef60f7d72d
parent7f97c8e367869e2aebe9f28bc5f8d4ce36448878
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).
13 files changed:
Doc/c-api/import.rst
Doc/data/refcounts.dat
Doc/data/stable_abi.dat
Doc/whatsnew/3.13.rst
Include/import.h
Lib/test/test_import/__init__.py
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2023-06-19-20-02-16.gh-issue-105922.o4T6wO.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_testcapimodule.c
PC/python3dll.c
Python/import.c
Python/pythonrun.c