]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105922: Use PyImport_AddModuleRef() function (#105999)
authorVictor Stinner <vstinner@python.org>
Thu, 22 Jun 2023 22:04:39 +0000 (00:04 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 22:04:39 +0000 (00:04 +0200)
commit193a2b2eaab9890f2cb16128c95bb63cb49307f1
tree5adc9c1888c7338746c57c7b9ab329e8cf269795
parent403a574b000569ea2c91f5325e6a8061a29e64bf
gh-105922: Use PyImport_AddModuleRef() function (#105999)

Replace PyImport_AddModuleObject() + Py_XNewRef() with
PyImport_AddModuleRef() to get directly a strong reference.
Python/import.c
Python/pythonrun.c