8000 bpo-39728: Enum: fix duplicate `ValueError` by ethanfurman · Pull Request #22277 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-39728: Enum: fix duplicate ValueError #22277

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

Merged
merged 6 commits into from
Sep 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update NEWS entry
  • Loading branch information
ethanfurman committed Sep 16, 2020
commit 6d45aa362738ead75a4c36b0baae039f03de74a6
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Instantiating enum with invalid value results in ValueError twice
fix default `_missing_` so a duplicate `ValueError` is not set as the `__context__` of the original `ValueError`
0