-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-105922: Add PyImport_AddModuleRef() function #105923
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice; I left some comments.
Too bad we cannot run the ref leak bots now; there's already a ref leak in test_import
and test_peg_generator
that has not been resolved :(
Misc/NEWS.d/next/C API/2023-06-19-20-02-16.gh-issue-105922.o4T6wO.rst
Outdated
Show resolved
Hide resolved
631c02c
to
bf2a756
Compare
I updated my PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo nit. Otherwise looks good to me.
Misc/NEWS.d/next/C API/2023-06-19-20-02-16.gh-issue-105922.o4T6wO.rst
Outdated
Show resolved
Hide resolved
* Add tests on PyImport_AddModuleRef(), PyImport_AddModule() and PyImport_AddModuleObject(). * pythonrun.c: Replace Py_XNewRef(PyImport_AddModule(name)) with PyImport_AddModuleRef(name).
I fixed the typo: similar than => similar to. |
22c5f8c
to
f3a223d
Compare
PyImport_AddModuleObject().
PyImport_AddModuleRef(name).
📚 Documentation preview 📚: https://cpython-previews--105923.org.readthedocs.build/