René's URL Explorer Experiment


Title: gh-107538: [Enum] fix handling of inverted/negative values by ethanfurman · Pull Request #132273 · python/cpython · GitHub

Open Graph Title: gh-107538: [Enum] fix handling of inverted/negative values by ethanfurman · Pull Request #132273 · python/cpython

X Title: gh-107538: [Enum] fix handling of inverted/negative values by ethanfurman · Pull Request #132273 · python/cpython

Description: 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...

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/python/cpython/pull/132273

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:52d252af-001c-d289-e6f1-22050ff6217f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8BE:2E4102:6DFC5:9091A:696B2D94
html-safe-nonce20999a917cf0014f587f646e749392e8ee16cb37019392869dbc9d7582bb63ba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEJFOjJFNDEwMjo2REZDNTo5MDkxQTo2OTZCMkQ5NCIsInZpc2l0b3JfaWQiOiIyMTI0NTk1NDk0MTcwMzQwNzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac37fc9a5e6e9515e94b79af9017316ef61472ee7c5b543cd2f4f41aae07ada2f2
hovercard-subject-tagpull_request:2446094648
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/132273/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cfa99ee83183369ef08e621ec69e0553ae01f3f09b0d3b060c914865a0d30099/python/cpython/pull/132273
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cfa99ee83183369ef08e621ec69e0553ae01f3f09b0d3b060c914865a0d30099/python/cpython/pull/132273
og:image:altcorrect 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameethanfurman
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/python/cpython/pull/132273
Reloadhttps://github.com/python/cpython/pull/132273
Reloadhttps://github.com/python/cpython/pull/132273
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/132273#issue-comment-box
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
ethanfurman:enum-inverthttps://github.com/ethanfurman/cpython/tree/enum-invert
gh-107538: [Enum] fix handling of inverted/negative values https://github.com/python/cpython/pull/132273#top
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
ethanfurman:enum-inverthttps://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 pagehttps://github.com/python/cpython/pull/132273
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
Apr 8, 2025https://github.com/python/cpython/pull/132273#issue-2979990881
Please reload this pagehttps://github.com/python/cpython/pull/132273
Inverted enum.Flag #107538https://github.com/python/cpython/issues/107538
Please reload this pagehttps://github.com/python/cpython/pull/132273
ethanfurmanhttps://github.com/ethanfurman
July 5, 2023 14:34https://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
a6beb03https://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
758de5fhttps://github.com/python/cpython/pull/132273/commits/758de5f51d97189386af4ebba989cc7592eb7a0a
https://github.com/ethanfurman
correct Flag inversion to only flip flag bitshttps://github.com/python/cpython/pull/132273/commits/7e60935156dd715f37eeb09a198fa65c0c8ef71e
7e60935https://github.com/python/cpython/pull/132273/commits/7e60935156dd715f37eeb09a198fa65c0c8ef71e
https://github.com/ethanfurman
correct negative assigned values in flagshttps://github.com/python/cpython/pull/132273/commits/6ecb9b40c95698c469f6389f99e6ebfb3b84a213
6ecb9b4https://github.com/python/cpython/pull/132273/commits/6ecb9b40c95698c469f6389f99e6ebfb3b84a213
https://github.com/ethanfurman
add blurbhttps://github.com/python/cpython/pull/132273/commits/ffc19105e059d9101fc5611c3fa90db80c48d746
ffc1910https://github.com/python/cpython/pull/132273/commits/ffc19105e059d9101fc5611c3fa90db80c48d746
https://github.com/apps/bedevere-app
bedevere-apphttps://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, 2025https://github.com/python/cpython/pull/132273#event-17172285315
https://github.com/apps/bedevere-app
bedevere-apphttps://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
ethanfurmanhttps://github.com/ethanfurman
Apr 8, 2025https://github.com/python/cpython/pull/132273#event-17172289210
ethanfurmanhttps://github.com/ethanfurman
April 8, 2025 07:35https://github.com/python/cpython/pull/132273#commits-pushed-51b9a65
https://github.com/ethanfurman
Merge branch 'main' into enum-inverthttps://github.com/python/cpython/pull/132273/commits/51b9a656a2c997a3556a1db3b0ff988a3bf6ac3d
51b9a65https://github.com/python/cpython/pull/132273/commits/51b9a656a2c997a3556a1db3b0ff988a3bf6ac3d
https://github.com/ethanfurman
Merge branch 'main' into enum-inverthttps://github.com/python/cpython/pull/132273/commits/9d0b20a324386d5c8a1335e904c6bed303503a07
9d0b20ahttps://github.com/python/cpython/pull/132273/commits/9d0b20a324386d5c8a1335e904c6bed303503a07
https://github.com/StanFromIreland
StanFromIrelandhttps://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.rsthttps://github.com/python/cpython/pull/132273/files/9d0b20a324386d5c8a1335e904c6bed303503a07#diff-093104daf3616e929cd0ed81d5693d9f7381f82dab103f5a1b474aee19a10d50
Please reload this pagehttps://github.com/python/cpython/pull/132273
https://github.com/ethanfurman
handle values of None or tupleshttps://github.com/python/cpython/pull/132273/commits/0a4dd5b33b6b53124f9697a10866e6c89ee44d61
0a4dd5bhttps://github.com/python/cpython/pull/132273/commits/0a4dd5b33b6b53124f9697a10866e6c89ee44d61
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
49365bdhttps://github.com/python/cpython/commit/49365bd110a254a6a304d2f880482bfeb2e4490d
Jul 10, 2025https://github.com/python/cpython/pull/132273#event-18575549415
Please reload this pagehttps://github.com/python/cpython/pull/132273
https://github.com/apps/bedevere-app
bedevere-apphttps://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, 2025https://github.com/python/cpython/pull/132273#event-18575549965
https://github.com/edgarrmondragon
edgarrmondragonhttps://github.com/edgarrmondragon
Jul 11, 2025https://github.com/python/cpython/pull/132273#issuecomment-3060166949
Please reload this pagehttps://github.com/python/cpython/pull/132273
AndPuQinghttps://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-107538https://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
87fdc0chttps://github.com/AndPuQing/cpython/commit/87fdc0cade9d417cdee52ffee076088b40767230
…honGH-132273https://github.com/python/cpython/pull/132273
Pranjal095https://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-107538https://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
a3f1c85https://github.com/Pranjal095/cpython/commit/a3f1c85f7a01d09fa5ed9f51a68b2093b16a45e7
…honGH-132273https://github.com/python/cpython/pull/132273
picnixzhttps://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-107538https://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
337f8dfhttps://github.com/picnixz/cpython/commit/337f8dff926d768dd46296473e1162140664f2f1
…honGH-132273https://github.com/python/cpython/pull/132273
taegyunkimhttps://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-107538https://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
4ba9355https://github.com/taegyunkim/cpython/commit/4ba9355debf39b5c8571f8d94feff15eeec77677
…honGH-132273https://github.com/python/cpython/pull/132273
Agent-Hellboyhttps://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-107538https://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
07cf4c6https://github.com/Agent-Hellboy/cpython/commit/07cf4c655d519273ce786cd51e0abc8250332b63
…honGH-132273https://github.com/python/cpython/pull/132273
https://github.com/junkmd
junkmdhttps://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 freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://github.com/python/cpython/pull/132273
https://github.com/ethanfurman
https://github.com/edgarrmondragon
https://github.com/StanFromIreland
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.