You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add C API for importing an attribute from a module #93741
Activity
pythongh-93741: Add private C API _PyImport_GetModuleAttrString()
kumaraditya303 commentedon Jun 13, 2022
Since this will be private API, how about using statically allocated string identifiers to avoid memory allocations?
serhiy-storchaka commentedon Jun 13, 2022
The PR adds also function
_PyImport_GetModuleAttr()which takesPyObject*arguments. You can use it with statically allocated string identifiers.gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742)
[3.11] pythongh-93741: Add private C API _PyImport_GetModuleAttrStrin…
[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (G…
[3.11] pythongh-93741: Add private C API _PyImport_GetModuleAttrStrin…
[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (G…
Revert 30935 defer bpo45162 to 312 (#94285)