Visitar URL original
bpo-46269: remove special-casing of `__new__` in `Enum.__dir__` by sobolevn · Pull Request #30421 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20251017020746/https://github.com/python/cpython/pull/30421
Skip to content

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 5, 2022 •

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

I'd love it if we could find some way of getting user-overridden __new__ methods to show up in the output of dir() and help(), but this is definitely better than the current, broken code -- thanks!

@ethanfurman
Copy link
Member

Thank you both!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants