Skip to content

Conversation

@oldk1331
Copy link
Contributor

@oldk1331 oldk1331 commented Jan 26, 2018

https://bugs.python.org/issue32674

This is a minor documentation fix for builtin function __import__.

https://bugs.python.org/issue32674

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\
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Member

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.

@matrixise
Copy link
Member

Hi @Mariatta
Could we merge this PR ?
Thanks

@Mariatta Mariatta merged commit 461d225 into python:master Feb 2, 2018
@miss-islington
Copy link
Contributor

Thanks @oldk1331 for the PR, and @Mariatta for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-5488 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 2, 2018
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]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 2, 2018
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]>
@bedevere-bot
Copy link

GH-5489 is a backport of this pull request to the 3.6 branch.

@miss-islington
Copy link
Contributor

Sorry, @oldk1331 and @Mariatta, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 461d225b195eec5269f317323b41115516144c41 2.7

Mariatta pushed a commit that referenced this pull request Feb 2, 2018
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]>
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Feb 2, 2018
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]>
@bedevere-bot
Copy link

GH-5494 is a backport of this pull request to the 2.7 branch.

Mariatta pushed a commit that referenced this pull request Feb 2, 2018
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]>
Mariatta added a commit that referenced this pull request Feb 2, 2018
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants