Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-86254: Use "SimpleNamespace(...)" in the repr for SimpleNamespace #23502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Nov 24, 2020

The repr is now "SimpleNamespace(...)" instead of "namespace(...)".

https://bugs.python.org/issue42088

The repr is now "SimpleNamespace(...)" instead of "namespace(...)".
@ZackerySpytz
Copy link
Contributor Author

As mentioned on the issue, the docs already state that type(self).__name__ is used when creating the repr.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Dec 28, 2020
@ZackerySpytz
Copy link
Contributor Author

It is not stale.

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Jan 6, 2021
@github-actions
Copy link

github-actions bot commented Feb 6, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Feb 6, 2021
@ericsnowcurrently
Copy link
Member

I've left some comments on the BPO issue about how I'd rather this be addressed by adding the type to the builtins.

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Aug 1, 2022
@erlend-aasland erlend-aasland changed the title bpo-42088: Use "SimpleNamespace(...)" in the repr for SimpleNamespace gh-86254: Use "SimpleNamespace(...)" in the repr for SimpleNamespace Jan 5, 2024
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.

None yet

7 participants