Skip to content

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Nov 26, 2023

Fixes a regression introduced by #98870

@AlexWaygood AlexWaygood added type-bug An unexpected behavior, bug, or error topic-importlib needs backport to 3.12 only security fixes labels Nov 26, 2023
@AlexWaygood AlexWaygood requested a review from FFY00 November 26, 2023 13:45
@AlexWaygood AlexWaygood changed the title gh-112414: Fix AttributeError when calling repr() on a module imported with a custom loader gh-112414: Fix AttributeError when calling repr() on a namespace package imported with a custom loader Nov 26, 2023
Copy link
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@AlexWaygood AlexWaygood merged commit 0622839 into python:main Nov 27, 2023
@AlexWaygood AlexWaygood deleted the module-repr-error branch November 27, 2023 08:19
@miss-islington-app
Copy link

Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 27, 2023
…space package imported with a custom loader (pythonGH-112425)

(cherry picked from commit 0622839)

Co-authored-by: Alex Waygood <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Nov 27, 2023

GH-112440 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Nov 27, 2023
AlexWaygood added a commit that referenced this pull request Nov 27, 2023
…espace package imported with a custom loader (GH-112425) (#112440)

gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package imported with a custom loader (GH-112425)
(cherry picked from commit 0622839)

Co-authored-by: Alex Waygood <[email protected]>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…space package imported with a custom loader (python#112425)
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…space package imported with a custom loader (python#112425)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-importlib type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants