FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-131045: [Enum] fix flag containment checks when using values (GH-131053) by picnixz · Pull Request #131232 · python/cpython · GitHub

/ cpython Public

[3.12] gh-131045: [Enum] fix flag containment checks when using values (GH-131053) - #131232

Merged
picnixz merged 3 commits into
python:3.12from
picnixz:bp-312/17d06aeb5476099bc1acd89cd6f69e239e0f9350/enum-131045
Mar 24, 2025
Merged

[3.12] gh-131045: [Enum] fix flag containment checks when using values (GH-131053)#131232
picnixz merged 3 commits into
python:3.12from
picnixz:bp-312/17d06aeb5476099bc1acd89cd6f69e239e0f9350/enum-131045

Conversation

picnixz commented Mar 14, 2025

Copy link
Copy Markdown
Member

Check would fail if value would create a pseudo-member, but that member
had not yet been created. We now attempt to create a pseudo-member for
a passed-in value first.
(cherry picked from commit 17d06ae)

Co-authored-by: Ethan Furman ethan@stoneleaf.us
Co-authored-by: Tomas R. tomas.roun8@gmail.com

…pythonGH-131053)

Check would fail if value would create a pseudo-member, but that member
had not yet been created.  We now attempt to create a pseudo-member for
a passed-in value first.

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
picnixz marked this pull request as ready for review March 14, 2025 11:44
picnixz self-assigned this Mar 23, 2025
picnixz merged commit 8a9aee7 into python:3.12 Mar 24, 2025
picnixz deleted the bp-312/17d06aeb5476099bc1acd89cd6f69e239e0f9350/enum-131045 branch March 24, 2025 09:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL