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-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility #93302

Merged
merged 1 commit into from May 27, 2022

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented May 27, 2022

No description provided.

@ethanfurman ethanfurman self-assigned this May 27, 2022
@ethanfurman ethanfurman added type-bug tests skip news stdlib 3.11 3.12 needs backport to 3.11 labels May 27, 2022
@ethanfurman ethanfurman merged commit 70cfe56 into python:main May 27, 2022
12 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 27, 2022

Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 27, 2022
…compatibility (pythonGH-93302)

In previous versions of Python if an IntEnum member was combined with another integer type value using a bit-wise operation, the resulting value would still be the IntEnum type.  This change restores that behavior.
(cherry picked from commit 70cfe56cafb2b549983f63d5d1a54654fe63c15c)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented May 27, 2022

GH-93304 is a backport of this pull request to the 3.11 branch.

ethanfurman added a commit that referenced this issue May 27, 2022
…ibility (GH-93302) (GH-93304)

In previous versions of Python if an IntEnum member was combined with another integer type value using a bit-wise operation, the resulting value would still be the IntEnum type.  This change restores that behavior.
(cherry picked from commit 70cfe56)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@ethanfurman ethanfurman deleted the enum-keep branch May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 3.12 skip news stdlib tests type-bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants