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

enum.Flag: default for boundary is incorrect #101739

Open
huwcbjones opened this issue Feb 9, 2023 · 0 comments
Open

enum.Flag: default for boundary is incorrect #101739

huwcbjones opened this issue Feb 9, 2023 · 0 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@huwcbjones
Copy link

huwcbjones commented Feb 9, 2023

In c9480d5 the default was changed from STRICT to CONFORM, but the docs were never updated to reflect this.
See https://docs.python.org/3.11/library/enum.html#enum.FlagBoundary

STRICT
Out-of-range values cause a ValueError to be raised. This is the default for Flag:

Linked PRs

@huwcbjones huwcbjones added the docs Documentation in the Doc dir label Feb 9, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 17, 2023
…NFORM (pythonGH-101746)

(cherry picked from commit 7f1c721)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
miss-islington added a commit that referenced this issue Feb 17, 2023
…H-101746)

(cherry picked from commit 7f1c721)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants