8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/ethanfurman' closed_at = None created_at = <Date 2022-01-23.00:37:08.664> labels = ['type-bug', '3.11'] title = 'Enum: ensure bitwise operators on subclasses are correct' updated_at = <Date 2022-01-23.02:27:57.589> user = 'https://github.com/ethanfurman'
bugs.python.org fields:
activity = <Date 2022-01-23.02:27:57.589> actor = 'ethan.furman' assignee = 'ethan.furman' closed = False closed_date = None closer = None components = [] creation = <Date 2022-01-23.00:37:08.664> creator = 'ethan.furman' dependencies = [] files = [] hgrepos = [] issue_num = 46477 keywords = ['patch'] message_count = 2.0 messages = ['411319', '411333'] nosy_count = 1.0 nosy_names = ['ethan.furman'] pr_nums = ['30816'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue46477' versions = ['Python 3.11']
The text was updated successfully, but these errors were encountered:
Creating one's own int Flag type doesn't work properly with regards to the bitwise operators:
class MyIntFlag(int, Flag): ONE = 1 TWO = 2 FOUR = 4
MyIntFlag.ONE | MyIntFlag.TWO # <MyIntFlag.ONE|TWO: 3> MyIntFlag.ONE | 2 # 3
Sorry, something went wrong.
New changeset 353e3b2 by Ethan Furman in branch 'main': bpo-46477: [Enum] ensure Flag subclasses have correct bitwise methods (GH-30816) 353e3b2
ethanfurman
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: