Skip to content

[Docs] Fix approximated importlib.import_module()#9945

Merged
vstinner merged 1 commit into
python:masterfrom
orlnub123:import_module
Oct 24, 2018
Merged

[Docs] Fix approximated importlib.import_module()#9945
vstinner merged 1 commit into
python:masterfrom
orlnub123:import_module

Conversation

@orlnub123

Copy link
Copy Markdown
Contributor

The spec gets stored on modules with the __spec__ attribute, not spec. An easy way to test the validity of this fix is running import_module('collections.abc'), which failed previously.

@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

GH-10085 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 Oct 24, 2018
The spec gets stored on modules with the __spec__ attribute, not spec.
(cherry picked from commit 78401f7)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 24, 2018
The spec gets stored on modules with the __spec__ attribute, not spec.
(cherry picked from commit 78401f7)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
miss-islington added a commit that referenced this pull request Oct 24, 2018
The spec gets stored on modules with the __spec__ attribute, not spec.
(cherry picked from commit 78401f7)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
miss-islington added a commit that referenced this pull request Oct 24, 2018
The spec gets stored on modules with the __spec__ attribute, not spec.
(cherry picked from commit 78401f7)

Co-authored-by: orlnub123 <orlnub123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants