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
GH-69695: Update PyImport_ImportModule
description
#103836
base: main
Are you sure you want to change the base?
Conversation
PyImport_ImportModule
description
import of a module doesn't leave the module in :data:`sys.modules`. | ||
|
||
This function always uses absolute imports. | ||
This is a wrapper around :c:func:`PyImport_Import()` which takes a ``const char *`` as an argument instead of a ``PyObject *``. |
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.
You could maybe use c:expr syntax here?:
This is a wrapper around :c:func:`PyImport_Import()` which takes a ``const char *`` as an argument instead of a ``PyObject *``. | |
This is a wrapper around :c:func:`PyImport_Import()` which takes a | |
:c:expr:`const char *` as an argument instead of a ``PyObject *``. |
Regardless of that please wrap the line, i.e.:
This is a wrapper around :c:func:`PyImport_Import()` which takes a ``const char *`` as an argument instead of a ``PyObject *``. | |
This is a wrapper around :c:func:`PyImport_Import()` which takes a | |
``const char *`` as an argument instead of a ``PyObject *``. |
A
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.
Couldn't the :c:expr:
use also apply to PyObject *
?
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.
The new lines are too long; I suspect Adam's line wrapping suggestions should fix the issue.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
import.rst file updated
gh-69695: PyImport_ImportModule description updated