summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-06-14 05:51:39 (GMT)
committerGitHub <noreply@github.com>2022-06-14 05:51:39 (GMT)
commitd42b3689f4a14694f5b1ff75c155141102aa2557 (patch)
treea8adaba47e89c98c6be3d0040f94ea909e321ba4 /Lib/test/setup_testcppext.py
parent02ff1ccfb702e740d08cd4f546cf0e51f929c718 (diff)
downloadcpython-d42b3689f4a14694f5b1ff75c155141102aa2557.zip
cpython-d42b3689f4a14694f5b1ff75c155141102aa2557.tar.gz
cpython-d42b3689f4a14694f5b1ff75c155141102aa2557.tar.bz2
[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) (GH-93792)
It combines PyImport_ImportModule() and PyObject_GetAttrString() and saves 4-6 lines of code on every use. Add also _PyImport_GetModuleAttr() which takes Python strings as arguments. (cherry picked from commit 6fd4c8ec7740523bb81191c013118d9d6959bc9d)
Diffstat (limited to 'Lib/test/setup_testcppext.py')
0 files changed, 0 insertions, 0 deletions