[3.7] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) by miss-islington · Pull Request #5498 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@miss-islington

Copy link Copy Markdown

Contributor

@miss-islington miss-islington commented

Feb 2, 2018

edited by bedevere-bot

Loading

  • Make sure __spec__.loader matches __loader__ for namespace packages.
  • Make sure __spec__.origin` matches file`` for namespace packages.

https://bugs.python.org/issue32303
https://bugs.python.org/issue32305
(cherry picked from commit bbbcf86)

Co-authored-by: Barry Warsaw barry@python.org

https://bugs.python.org/issue32303

* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.

https://bugs.python.org/issue32303
https://bugs.python.org/issue32305
(cherry picked from commit bbbcf86)

Co-authored-by: Barry Warsaw <barry@python.org>

@miss-islington

Copy link Copy Markdown

Contributor Author

@warsaw: Backport status check is done, and it's a success ✅ .

1 similar comment

@miss-islington

Copy link Copy Markdown

Contributor Author

@warsaw: Backport status check is done, and it's a success ✅ .

@warsaw

Copy link Copy Markdown

Member

warsaw commented

Feb 2, 2018

Closing in favor of #5503 - @brettcannon and I agree that because of the changes to importlib.h and importlib_external.h, it's safer to do a manual rebuild and merge.

@warsaw warsaw closed this

Feb 2, 2018

@miss-islington miss-islington deleted the backport-bbbcf86-3.7 branch

February 2, 2018 23:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington @warsaw @the-knights-who-say-ni @bedevere-bot