SIGN IN SIGN UP

gh-128911: Add PyImport_ImportModuleAttr() function (#128912)

Add PyImport_ImportModuleAttr() and
PyImport_ImportModuleAttrString() functions.

* Add unit tests.
* Replace _PyImport_GetModuleAttr()
  with PyImport_ImportModuleAttr().
* Replace _PyImport_GetModuleAttrString()
  with PyImport_ImportModuleAttrString().
* Remove "pycore_import.h" includes, no longer needed.
V
Victor Stinner committed
3bebe46d3413195ee18c5c9ada83a35d4fd1d0e7
Parent: f927204
Committed by GitHub <noreply@github.com> on 1/30/2025, 11:17:29 AM