bpo-32674: minor documentation fix for '__import__'#5339
bpo-32674: minor documentation fix for '__import__'#5339Mariatta merged 3 commits intopython:masterfrom oldk1331:bpo-32674
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.
With this change, I believe your new comma should be a semi-colon. imports; 0 is absolute
There was a problem hiding this comment.
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.
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