-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-32674: minor documentation fix for '__import__' #5339
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
Python/bltinmodule.c
Outdated
| fromlist is not empty. Level is used to determine whether to perform \n\ | ||
| absolute or relative imports. 0 is absolute while a positive number\n\ | ||
| fromlist is not empty. The level argument is used to determine whether to\n\ | ||
| perform absolute or relative imports, 0 is absolute while a positive number\n\ |
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.
With this change, I believe your new comma should be a semi-colon. imports; 0 is absolute
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.
Isn't colon better than semi colon here? BTW, should I add a new commit on top of this or amend this commit?
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.
We prefer you don't amend commits, so add a new one. Thanks.
|
Hi @Mariatta |
|
GH-5488 is a backport of this pull request to the 3.7 branch. |
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module. (cherry picked from commit 461d225) Co-authored-by: oldk <[email protected]>
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module. (cherry picked from commit 461d225) Co-authored-by: oldk <[email protected]>
|
GH-5489 is a backport of this pull request to the 3.6 branch. |
|
Sorry, @oldk1331 and @Mariatta, I could not cleanly backport this to |
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module. (cherry picked from commit 461d225) Co-authored-by: oldk <[email protected]>
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module.. (cherry picked from commit 461d225) Co-authored-by: oldk <[email protected]>
|
GH-5494 is a backport of this pull request to the 2.7 branch. |
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module. (cherry picked from commit 461d225) Co-authored-by: oldk <[email protected]>
Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module.. (cherry picked from commit 461d225) Co-authored-by: oldk <[email protected]>
https://bugs.python.org/issue32674
This is a minor documentation fix for builtin function
__import__.https://bugs.python.org/issue32674