]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115821: [Enum] better error message for calling super().__new__() (GH-116063)
authorEthan Furman <ethan@stoneleaf.us>
Wed, 28 Feb 2024 23:17:49 +0000 (15:17 -0800)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 23:17:49 +0000 (15:17 -0800)
commit3ea78fd5bc93fc339ef743e6a5dfde35f04d972e
treed2721c6a87742242d2f4310fa584e16980d191fe
parent4d1d35b906010c6db15f54443a9701c20af1db2d
gh-115821: [Enum] better error message for calling super().__new__() (GH-116063)

docs now state to not call super().__new__
if super().__new__ is called, a better error message is now used
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Misc/NEWS.d/next/Library/2024-02-28-12-14-31.gh-issue-115821.YO2vKA.rst [new file with mode: 0644]