| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:52d252af-001c-d289-e6f1-22050ff6217f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8BE:2E4102:6DFC5:9091A:696B2D94 |
| html-safe-nonce | 20999a917cf0014f587f646e749392e8ee16cb37019392869dbc9d7582bb63ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEJFOjJFNDEwMjo2REZDNTo5MDkxQTo2OTZCMkQ5NCIsInZpc2l0b3JfaWQiOiIyMTI0NTk1NDk0MTcwMzQwNzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 37fc9a5e6e9515e94b79af9017316ef61472ee7c5b543cd2f4f41aae07ada2f2 |
| hovercard-subject-tag | pull_request:2446094648 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/132273/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/cfa99ee83183369ef08e621ec69e0553ae01f3f09b0d3b060c914865a0d30099/python/cpython/pull/132273 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfa99ee83183369ef08e621ec69e0553ae01f3f09b0d3b060c914865a0d30099/python/cpython/pull/132273 |
| og:image:alt | correct Flag inversion to only flip flag bits; IntFlag still flips all bits -- this
only makes a difference in flag sets with missing values.
correct negative assigned values in flags; negative val... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ethanfurman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/132273#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132273 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132273 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/132273 |
| Reload | https://github.com/python/cpython/pull/132273 |
| Reload | https://github.com/python/cpython/pull/132273 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://github.com/python/cpython/pull/132273#issue-comment-box |
| ethanfurman | https://github.com/ethanfurman |
| python:main | https://github.com/python/cpython/tree/main |
| ethanfurman:enum-invert | https://github.com/ethanfurman/cpython/tree/enum-invert |
|
gh-107538: [Enum] fix handling of inverted/negative values
| https://github.com/python/cpython/pull/132273#top |
| ethanfurman | https://github.com/ethanfurman |
| python:main | https://github.com/python/cpython/tree/main |
| ethanfurman:enum-invert | https://github.com/ethanfurman/cpython/tree/enum-invert |
|
Conversation
3
| https://github.com/python/cpython/pull/132273 |
|
Commits
8
| https://github.com/python/cpython/pull/132273/commits |
|
Checks
37
| https://github.com/python/cpython/pull/132273/checks |
|
Files changed
| https://github.com/python/cpython/pull/132273/files |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/ethanfurman |
| ethanfurman | https://github.com/ethanfurman |
| Apr 8, 2025 | https://github.com/python/cpython/pull/132273#issue-2979990881 |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
| Inverted enum.Flag #107538 | https://github.com/python/cpython/issues/107538 |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
| ethanfurman | https://github.com/ethanfurman |
| July 5, 2023 14:34 | https://github.com/python/cpython/pull/132273#commits-pushed-a6beb03 |
|
| https://github.com/ethanfurman |
| Fix flag mask inversion when unnamed flags exist. | https://github.com/python/cpython/pull/132273/commits/a6beb03a359daa5674381f679407bbbc510a9338 |
| a6beb03 | https://github.com/python/cpython/pull/132273/commits/a6beb03a359daa5674381f679407bbbc510a9338 |
|
| https://github.com/ethanfurman |
| EJECT and KEEP flags (IntEnum is KEEP) use direct value. | https://github.com/python/cpython/pull/132273/commits/758de5f51d97189386af4ebba989cc7592eb7a0a |
| 758de5f | https://github.com/python/cpython/pull/132273/commits/758de5f51d97189386af4ebba989cc7592eb7a0a |
|
| https://github.com/ethanfurman |
| correct Flag inversion to only flip flag bits | https://github.com/python/cpython/pull/132273/commits/7e60935156dd715f37eeb09a198fa65c0c8ef71e |
| 7e60935 | https://github.com/python/cpython/pull/132273/commits/7e60935156dd715f37eeb09a198fa65c0c8ef71e |
|
| https://github.com/ethanfurman |
| correct negative assigned values in flags | https://github.com/python/cpython/pull/132273/commits/6ecb9b40c95698c469f6389f99e6ebfb3b84a213 |
| 6ecb9b4 | https://github.com/python/cpython/pull/132273/commits/6ecb9b40c95698c469f6389f99e6ebfb3b84a213 |
|
| https://github.com/ethanfurman |
| add blurb | https://github.com/python/cpython/pull/132273/commits/ffc19105e059d9101fc5611c3fa90db80c48d746 |
| ffc1910 | https://github.com/python/cpython/pull/132273/commits/ffc19105e059d9101fc5611c3fa90db80c48d746 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Apr 8, 2025 | https://github.com/python/cpython/pull/132273#event-17172285315 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Apr 8, 2025
| https://github.com/python/cpython/pull/132273#ref-issue-1831347410 |
|
Inverted enum.Flag
#107538
| https://github.com/python/cpython/issues/107538 |
| https://github.com/ethanfurman |
| ethanfurman | https://github.com/ethanfurman |
| Apr 8, 2025 | https://github.com/python/cpython/pull/132273#event-17172289210 |
| ethanfurman | https://github.com/ethanfurman |
| April 8, 2025 07:35 | https://github.com/python/cpython/pull/132273#commits-pushed-51b9a65 |
|
| https://github.com/ethanfurman |
| Merge branch 'main' into enum-invert | https://github.com/python/cpython/pull/132273/commits/51b9a656a2c997a3556a1db3b0ff988a3bf6ac3d |
| 51b9a65 | https://github.com/python/cpython/pull/132273/commits/51b9a656a2c997a3556a1db3b0ff988a3bf6ac3d |
|
| https://github.com/ethanfurman |
| Merge branch 'main' into enum-invert | https://github.com/python/cpython/pull/132273/commits/9d0b20a324386d5c8a1335e904c6bed303503a07 |
| 9d0b20a | https://github.com/python/cpython/pull/132273/commits/9d0b20a324386d5c8a1335e904c6bed303503a07 |
| https://github.com/StanFromIreland |
| StanFromIreland | https://github.com/StanFromIreland |
|
Apr 8, 2025
| https://github.com/python/cpython/pull/132273#pullrequestreview-2750859183 |
|
View reviewed changes
| https://github.com/python/cpython/pull/132273/files/9d0b20a324386d5c8a1335e904c6bed303503a07 |
| Misc/NEWS.d/next/Library/2023-07-05-14-34-10.gh-issue-105497.HU5u89.rst | https://github.com/python/cpython/pull/132273/files/9d0b20a324386d5c8a1335e904c6bed303503a07#diff-093104daf3616e929cd0ed81d5693d9f7381f82dab103f5a1b474aee19a10d50 |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
|
| https://github.com/ethanfurman |
| handle values of None or tuples | https://github.com/python/cpython/pull/132273/commits/0a4dd5b33b6b53124f9697a10866e6c89ee44d61 |
| 0a4dd5b | https://github.com/python/cpython/pull/132273/commits/0a4dd5b33b6b53124f9697a10866e6c89ee44d61 |
| https://github.com/ethanfurman |
| ethanfurman | https://github.com/ethanfurman |
| 49365bd | https://github.com/python/cpython/commit/49365bd110a254a6a304d2f880482bfeb2e4490d |
| Jul 10, 2025 | https://github.com/python/cpython/pull/132273#event-18575549415 |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Jul 10, 2025 | https://github.com/python/cpython/pull/132273#event-18575549965 |
| https://github.com/edgarrmondragon |
| edgarrmondragon | https://github.com/edgarrmondragon |
| Jul 11, 2025 | https://github.com/python/cpython/pull/132273#issuecomment-3060166949 |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
| AndPuQing | https://github.com/AndPuQing |
|
Jul 11, 2025
| https://github.com/python/cpython/pull/132273#ref-commit-87fdc0c |
|
| https://github.com/ethanfurman |
|
| https://github.com/AndPuQing |
| pythongh-107538 | https://github.com/python/cpython/issues/107538 |
| : [Enum] fix handling of inverted/negative values ( | https://github.com/AndPuQing/cpython/commit/87fdc0cade9d417cdee52ffee076088b40767230 |
| pyt… | https://github.com/python/cpython/pull/132273 |
| 87fdc0c | https://github.com/AndPuQing/cpython/commit/87fdc0cade9d417cdee52ffee076088b40767230 |
| …honGH-132273 | https://github.com/python/cpython/pull/132273 |
| Pranjal095 | https://github.com/Pranjal095 |
|
Jul 12, 2025
| https://github.com/python/cpython/pull/132273#ref-commit-a3f1c85 |
|
| https://github.com/ethanfurman |
|
| https://github.com/Pranjal095 |
| pythongh-107538 | https://github.com/python/cpython/issues/107538 |
| : [Enum] fix handling of inverted/negative values ( | https://github.com/Pranjal095/cpython/commit/a3f1c85f7a01d09fa5ed9f51a68b2093b16a45e7 |
| pyt… | https://github.com/python/cpython/pull/132273 |
| a3f1c85 | https://github.com/Pranjal095/cpython/commit/a3f1c85f7a01d09fa5ed9f51a68b2093b16a45e7 |
| …honGH-132273 | https://github.com/python/cpython/pull/132273 |
| picnixz | https://github.com/picnixz |
|
Jul 13, 2025
| https://github.com/python/cpython/pull/132273#ref-commit-337f8df |
|
| https://github.com/ethanfurman |
|
| https://github.com/picnixz |
| pythongh-107538 | https://github.com/python/cpython/issues/107538 |
| : [Enum] fix handling of inverted/negative values ( | https://github.com/picnixz/cpython/commit/337f8dff926d768dd46296473e1162140664f2f1 |
| pyt… | https://github.com/python/cpython/pull/132273 |
| 337f8df | https://github.com/picnixz/cpython/commit/337f8dff926d768dd46296473e1162140664f2f1 |
| …honGH-132273 | https://github.com/python/cpython/pull/132273 |
| taegyunkim | https://github.com/taegyunkim |
|
Aug 4, 2025
| https://github.com/python/cpython/pull/132273#ref-commit-4ba9355 |
|
| https://github.com/ethanfurman |
|
| https://github.com/taegyunkim |
| pythongh-107538 | https://github.com/python/cpython/issues/107538 |
| : [Enum] fix handling of inverted/negative values ( | https://github.com/taegyunkim/cpython/commit/4ba9355debf39b5c8571f8d94feff15eeec77677 |
| pyt… | https://github.com/python/cpython/pull/132273 |
| 4ba9355 | https://github.com/taegyunkim/cpython/commit/4ba9355debf39b5c8571f8d94feff15eeec77677 |
| …honGH-132273 | https://github.com/python/cpython/pull/132273 |
| Agent-Hellboy | https://github.com/Agent-Hellboy |
|
Aug 19, 2025
| https://github.com/python/cpython/pull/132273#ref-commit-07cf4c6 |
|
| https://github.com/ethanfurman |
|
| https://github.com/Agent-Hellboy |
| pythongh-107538 | https://github.com/python/cpython/issues/107538 |
| : [Enum] fix handling of inverted/negative values ( | https://github.com/Agent-Hellboy/cpython/commit/07cf4c655d519273ce786cd51e0abc8250332b63 |
| pyt… | https://github.com/python/cpython/pull/132273 |
| 07cf4c6 | https://github.com/Agent-Hellboy/cpython/commit/07cf4c655d519273ce786cd51e0abc8250332b63 |
| …honGH-132273 | https://github.com/python/cpython/pull/132273 |
| https://github.com/junkmd |
| junkmd | https://github.com/junkmd |
|
Dec 30, 2025
| https://github.com/python/cpython/pull/132273#ref-issue-3770567569 |
|
Adapting to Python 3.15+ IntFlag changes for negative members.
enthought/comtypes#894
| https://github.com/enthought/comtypes/issues/894 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132273 |
|
| https://github.com/StanFromIreland |
|
StanFromIreland
| https://github.com/StanFromIreland |
|
| https://github.com/python/cpython/pull/132273/files/9d0b20a324386d5c8a1335e904c6bed303503a07 |
|
| https://github.com/ethanfurman |
|
ethanfurman
| https://github.com/ethanfurman |
| Please reload this page | https://github.com/python/cpython/pull/132273 |
|
| https://github.com/ethanfurman |
|
| https://github.com/edgarrmondragon |
|
| https://github.com/StanFromIreland |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |