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-115821: [Enum] better error message for calling super().__new__() #116063

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Feb 28, 2024

docs now state to not call super().__new__
if super().__new__ is called, a better error message is now used
@ethanfurman ethanfurman added type-feature A feature request or enhancement stdlib Python modules in the Lib dir 3.13 bugs and security fixes labels Feb 28, 2024
@ethanfurman ethanfurman self-assigned this Feb 28, 2024
Doc/library/enum.rst Outdated Show resolved Hide resolved
@ethanfurman ethanfurman merged commit 3ea78fd into python:main Feb 28, 2024
31 checks passed
@ethanfurman ethanfurman deleted the enum-new_error_message branch February 28, 2024 23:19
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
…w__() (pythonGH-116063)

docs now state to not call super().__new__
if super().__new__ is called, a better error message is now used
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…w__() (pythonGH-116063)

docs now state to not call super().__new__
if super().__new__ is called, a better error message is now used
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…w__() (pythonGH-116063)

docs now state to not call super().__new__
if super().__new__ is called, a better error message is now used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant