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-118820: Zero-valued flag enum has no name #118848

Merged
merged 7 commits into from
Jun 19, 2024
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 Doc/howto/enum.rst
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
  • Loading branch information
nineteendo and ethanfurman authored May 9, 2024
commit 7b3390facbbf4b4c8affa42e46812c5dfe8eab91
4 changes: 2 additions & 2 deletions Doc/howto/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,8 @@ the following are true:

>>> (Color.RED | Color.GREEN).name
'RED|GREEN'
>>> repr(Perm.R & Perm.W).name)
'None'
>>> (Perm.R & Perm.W).name is None
nineteendo marked this conversation as resolved.
Show resolved Hide resolved
True

- multi-bit flags, aka aliases, can be returned from operations::

Expand Down
Loading