SIGN IN SIGN UP

[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)
S
Serhiy Storchaka committed
d42b3689f4a14694f5b1ff75c155141102aa2557
Parent: 02ff1cc
Committed by GitHub <noreply@github.com> on 6/14/2022, 5:51:39 AM