-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
bpo-30840: Document relative imports #12831
Conversation
cc @csabella for review. |
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.
Some editing notes. I have marked this review as "Comment" rather than "Request changes", because I did not see any problems with the grammar, and my notes are mainly stylistic.
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.
No more style and grammar issues from my end, though I'll defer to someone else about whether or not this solves the bpo issue (@ncoghlan maybe?)
Thanks!
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 section looks good (thanks!), but to resolve the original documentation bug, the PEP 328 cross-reference in https://docs.python.org/3/reference/simple_stmts.html#the-import-statement needs to be updated to link to this new section instead.
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 |
I have made the requested changes; please review again . |
@nanjekyejoannah Do note that you need to reply with |
@brettcannon Noted and thanks! |
@nanjekyejoannah just so you know for future PRs, the magic phrase needs to be in a new comment, otherwise the bot won't pick it up. But I have gone ahead and manually changed the label and requested @ncoghlan to do another review. |
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.
Thanks! I was going to suggest adding a hyphen as part of the new cross-reference label, but we're currently missing one of those in the importsystem
target as well, so leaving it out is consistent within this particular file.
@ncoghlan: Please replace |
Thanks @nanjekyejoannah for the PR, and @ncoghlan for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
* document relative imports * 📜🤖 Added by blurb_it. * fix indentation error * remove indentation * Document relative imports * Document relative imports * remove from ...package * Document relative imports * remove trailing space * Document relative imports * Document relative imports (cherry picked from commit 70bf713) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
GH-12938 is a backport of this pull request to the 3.7 branch. |
Hmm, I just had the GitHub commit message editor break on me again:
|
https://bugs.python.org/issue30840