]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128911: Use PyImport_ImportModuleAttr() function (#129657)
authorVictor Stinner <vstinner@python.org>
Wed, 5 Feb 2025 10:03:58 +0000 (11:03 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2025 10:03:58 +0000 (11:03 +0100)
commitdc804ffb2f7cfaf60916b36f3d5cac9c00e4f1ea
tree3eb3cce29397c318c1eba574c0cb41efe3b2f37e
parentfb5d1c923677e7982360bad934d70cf9ad3366ca
gh-128911: Use PyImport_ImportModuleAttr() function (#129657)

* Replace PyImport_ImportModule() + PyObject_GetAttr() with
  PyImport_ImportModuleAttr().
* Replace PyImport_ImportModule() + PyObject_GetAttrString() with
  PyImport_ImportModuleAttrString().
Modules/_ctypes/callbacks.c
Modules/_ctypes/stgdict.c
Modules/_testcapi/code.c
Modules/_testcapimodule.c
Modules/main.c
Python/crossinterp.c
Python/pythonrun.c