Skip to content

gh-128911: Use PyImport_ImportModuleAttr() function #129657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 4, 2025

  • Replace PyImport_ImportModule() + PyObject_GetAttr() with PyImport_ImportModuleAttr().
  • Replace PyImport_ImportModule() + PyObject_GetAttrString() with PyImport_ImportModuleAttrString().

* Replace PyImport_ImportModule() + PyObject_GetAttr() with
  PyImport_ImportModuleAttr().
* Replace PyImport_ImportModule() + PyObject_GetAttrString() with
  PyImport_ImportModuleAttrString().
@vstinner vstinner merged commit dc804ff into python:main Feb 5, 2025
41 checks passed
@vstinner vstinner deleted the use_importattr branch February 5, 2025 10:04
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
)

* Replace PyImport_ImportModule() + PyObject_GetAttr() with
  PyImport_ImportModuleAttr().
* Replace PyImport_ImportModule() + PyObject_GetAttrString() with
  PyImport_ImportModuleAttrString().
cmaloney pushed a commit to cmaloney/cpython that referenced this pull request Feb 8, 2025
)

* Replace PyImport_ImportModule() + PyObject_GetAttr() with
  PyImport_ImportModuleAttr().
* Replace PyImport_ImportModule() + PyObject_GetAttrString() with
  PyImport_ImportModuleAttrString().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant