Skip to content

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

Open
ZackerySpytz wants to merge 2 commits intopython:mainfrom
ZackerySpytz:bpo-42088-types-SimpleNamespace-repr
Open

gh-86254: Use "SimpleNamespace(...)" in the repr for SimpleNamespace#23502
ZackerySpytz wants to merge 2 commits intopython:mainfrom
ZackerySpytz:bpo-42088-types-SimpleNamespace-repr

Conversation

@ZackerySpytz
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

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 Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants