gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742)
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.
S
Serhiy Storchaka committed
6fd4c8ec7740523bb81191c013118d9d6959bc9d
Parent: 7b2064b
Committed by GitHub <noreply@github.com>
on 6/14/2022, 4:15:26 AM